X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=gui.c;h=5f2dba0230cf409e0f80820c8314d5d6cc1d6e84;hb=45b4e8b0ba410fd929a341a9bf84b1ac3995d734;hp=45b477fb19b8bddaa43918b2d86676584c12b864;hpb=b0fe6d882dd35b01360a66e130d6714aff7b6a0d;p=paraslash.git diff --git a/gui.c b/gui.c index 45b477fb..5f2dba02 100644 --- 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; }