diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-26 21:44:45 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-26 21:44:45 +0200 |
commit | 856d564690c858f7c9b92a81e9062328c75f193e (patch) | |
tree | 83f488c6b298cf6bc9b45c9c44346d83fb5761f8 | |
parent | eaf177e2be6ad7be3f32632dcfcea48402f67c7d (diff) |
Removed number of results in find data.
-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; } |