comparison mcabber/src/utils.c @ 911:fe57dd753a56 0.7.7

Fix a segfault Fix a segfault when there are several consecutive spaces in a command.
author Mikael Berthe <mikael@lilotux.net>
date Wed, 21 Jun 2006 23:19:05 +0200
parents a6628f0aabc1
children 527d6f234924
comparison
equal deleted inserted replaced
910:7613db31d344 911:fe57dd753a56
442 if (*p == ' ' && !instring && i+1 < n) { 442 if (*p == ' ' && !instring && i+1 < n) {
443 // end of parameter 443 // end of parameter
444 *(arglst+i) = g_strndup(start, p-start); 444 *(arglst+i) = g_strndup(start, p-start);
445 strip_arg_special_chars(*(arglst+i)); 445 strip_arg_special_chars(*(arglst+i));
446 for (start = p+1; *start && *start == ' '; start++) ; 446 for (start = p+1; *start && *start == ' '; start++) ;
447 p = start;
447 i++; 448 i++;
448 } 449 }
449 } 450 }
450 451
451 if (start < end) { 452 if (start < end) {