Replaced trim implementation with g_strstrip

This commit is contained in:
James Booth
2012-04-26 23:19:28 +01:00
parent 308d7fa945
commit 381d4b8dc9
3 changed files with 6 additions and 18 deletions

View File

@@ -53,7 +53,7 @@ gboolean process_input(char *inp)
if (strlen(inp) == 0) {
result = TRUE;
} else if (inp[0] == '/') {
inp = trim(inp);
trim(inp);
char inp_cpy[strlen(inp) + 1];
strcpy(inp_cpy, inp);
char *command = strtok(inp_cpy, " ");