summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-08-26 21:44:45 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-08-26 21:44:45 +0200
commit856d564690c858f7c9b92a81e9062328c75f193e (patch)
tree83f488c6b298cf6bc9b45c9c44346d83fb5761f8
parenteaf177e2be6ad7be3f32632dcfcea48402f67c7d (diff)
Removed number of results in find data.
-rw-r--r--commands.c1
-rw-r--r--control_commands.c2
2 files changed, 1 insertions, 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;
}