mcabber/src/utils.c
changeset 556 c4fee1a2c478
parent 554 2424bbf0a6db
child 559 4eb579399613
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) {