new codename, reset version to git
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index 45b477fb19b8bddaa43918b2d86676584c12b864..64fab61b7859e5192a3d1583a693622be8977087 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -730,6 +730,8 @@ static int read_audiod_pipe(int fd)
        ret = for_each_stat_item(buf, loaded, update_item);
        if (ret < 0)
                return ret;
+       if (ret > 0 && ret < loaded)
+               memmove(buf, buf + loaded - ret, ret);
        loaded = ret;
        return 1;
 }
@@ -1371,6 +1373,7 @@ static void handle_command(int c)
                                command_list[num].handler();
                }
                free(tmp);
+               return;
        }
        /* not found, check internal key bindings */
        for (i = 0; command_list[i].handler; i++) {