diff options
-rw-r--r-- | commands.c | 1 | ||||
-rw-r--r-- | control_commands.c | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -75,7 +75,6 @@ static void commands_find(GSocketConnection *connection, const gchar *cmd) { } GString *string = g_string_new(NULL); - g_string_append_printf(string, "%d\n", g_slist_length(list)); for(GSList *node = list; node; node = g_slist_next(node)) { struct file *f = node->data; gchar *relpath = g_build_filename(f->parent->path + diff --git a/control_commands.c b/control_commands.c index f8f3a54..0e5658a 100644 --- a/control_commands.c +++ b/control_commands.c @@ -53,7 +53,7 @@ static void commands_find(GSocketConnection *connection, const gchar *cmd) { if(temp == NULL) { continue; } - for(gint i = 1; i < g_strv_length(temp); i++) { + for(gint i = 0; i < g_strv_length(temp); i++) { if(strlen(temp[i]) == 0) { break; } |