Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/utils.c @ 556:c4fee1a2c478
Fix bug in split_arg()
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 30 Nov 2005 22:34:06 +0100 |
parents | 2424bbf0a6db |
children | 4eb579399613 |
comparison
equal
deleted
inserted
replaced
555:11ac80e41c7d | 556:c4fee1a2c478 |
---|---|
417 escape = FALSE; | 417 escape = FALSE; |
418 if (*p == ' ' && !instring && i+1 < n) { | 418 if (*p == ' ' && !instring && i+1 < n) { |
419 // end of parameter | 419 // end of parameter |
420 *(arglst+i) = g_strndup(start, p-start); | 420 *(arglst+i) = g_strndup(start, p-start); |
421 strip_arg_special_chars(*(arglst+i)); | 421 strip_arg_special_chars(*(arglst+i)); |
422 start = p+1; | 422 for (start = p+1; *start && *start == ' '; start++) ; |
423 i++; | 423 i++; |
424 } | 424 } |
425 } | 425 } |
426 | 426 |
427 if (start < end) { | 427 if (start < end) { |