The whitespace might be relevant input like for the input commands where
something like ':input :open ' is useful.
static gboolean vp_process_input(const char* input)
{
gboolean success;
- char* line = NULL;
char* command = NULL;
char** token;
return FALSE;
}
- line = g_strdup(input);
- g_strstrip(line);
-
/* get a possible command count */
- vp.state.count = g_ascii_strtoll(line, &command, 10);
+ vp.state.count = g_ascii_strtoll(input, &command, 10);
/* split the input string into command and parameter part */
token = g_strsplit(command, " ", 2);
- g_free(line);
if (!token[0]) {
g_strfreev(token);