X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui.c;h=5f2dba0230cf409e0f80820c8314d5d6cc1d6e84;hp=8272fee79747847522ebf7282d071b52fb66f845;hb=4e979d91dc967b241a0f034a5600447eb7826eef;hpb=a586ac33f5a699e406d3708988b6fa1fbe0ce3b7 diff --git a/gui.c b/gui.c index 8272fee7..5f2dba02 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; }