comparison mcabber/src/utils.c @ 1367:cd0d63024923

Fix up split_arg() Fix a small quoting issue.
author Mikael Berthe <mikael@lilotux.net>
date Wed, 14 Nov 2007 00:34:22 +0100
parents 0562106d20c1
children 366ef500c522
comparison
equal deleted inserted replaced
1366:01e558748379 1367:cd0d63024923
456 if (*p == ' ' && !instring && i+1 < n) { 456 if (*p == ' ' && !instring && i+1 < n) {
457 // end of parameter 457 // end of parameter
458 *(arglst+i) = g_strndup(start, p-start); 458 *(arglst+i) = g_strndup(start, p-start);
459 strip_arg_special_chars(*(arglst+i)); 459 strip_arg_special_chars(*(arglst+i));
460 for (start = p+1; *start && *start == ' '; start++) ; 460 for (start = p+1; *start && *start == ' '; start++) ;
461 p = start; 461 p = start-1;
462 i++; 462 i++;
463 } 463 }
464 } 464 }
465 465
466 if (start < end) { 466 if (start < end) {