mcabber/src/utils.c
changeset 1367 cd0d63024923
parent 1361 0562106d20c1
child 1414 366ef500c522
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) {