From c1cf0a71cfd8aa3441e57592e17de0d34823d305 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 28 Sep 2011 13:57:14 +0200 Subject: find_by_id: Fix lookup The offset should be taken from the (GList *)::data pointer, not the list directly.. --- src/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index e3b9bcb..b3227eb 100644 --- a/src/io.c +++ b/src/io.c @@ -105,7 +105,7 @@ process_line(char *line) cmd[strlen(ctx->commands[i].name)] != ' ') continue; - ctx->commands[i].callback(ctx); + ctx->commands[i].callback(ctx, 0, NULL); break; } } -- cgit