This commit is contained in:
Pierre Pronchery 2005-09-23 23:00:20 +00:00
parent 7a243fdb8d
commit 1b657bd8c6

View File

@ -267,9 +267,9 @@ static int _send_string(char * string, char buf[], int buflen, int * pos)
#endif
while(*pos < buflen)
{
buf[*pos] = string[i++];
buf[*pos] = string[i];
(*pos)++;
if(string[i] == '\0')
if(string[i++] == '\0')
return 0;
}
return 1;