From: Francois Fleuret Date: Tue, 12 Feb 2013 22:02:21 +0000 (+0100) Subject: Cosmetics. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=46359032040466742b597614ca5b353948993b98;p=mymail.git Cosmetics. --- diff --git a/mymail.c b/mymail.c index 325562e..b7e46ba 100644 --- a/mymail.c +++ b/mymail.c @@ -155,11 +155,12 @@ int xor(int a, int b) { const char *parse_token(char *token_buffer, size_t token_buffer_size, char separator, const char *string) { char *u = token_buffer; + while(*string == separator) { string++; } while(u < token_buffer + token_buffer_size - 1 && *string && *string != separator) { *(u++) = *(string++); } - while(*string == separator) string++; + while(*string == separator) { string++; } *u = '\0'; return string; }