From 856d564690c858f7c9b92a81e9062328c75f193e Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 26 Aug 2010 21:44:45 +0200 Subject: Removed number of results in find data. --- commands.c | 1 - control_commands.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/commands.c b/commands.c index 26a7ae5..8869f49 100644 --- a/commands.c +++ b/commands.c @@ -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; } -- cgit v1.2.3