X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui.c;h=64fab61b7859e5192a3d1583a693622be8977087;hp=8272fee79747847522ebf7282d071b52fb66f845;hb=9bf4bc297a7cb88f4f886c6b8d600fd6c584139c;hpb=0e4306dd5162a2850e623bf3082b3f7291aaad45 diff --git a/gui.c b/gui.c index 8272fee7..64fab61b 100644 --- a/gui.c +++ b/gui.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1998-2009 Andre Noll + * Copyright (C) 1998-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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++) {