X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=gui_common.c;fp=gui_common.c;h=d806ebe2df2b6e741ce80837fc59e3c28acb9536;hb=ef1066346672b1a83a4d2146e61659984a3b97fd;hp=2c499126e11ce3fcca637acc13259c909f199e05;hpb=4b4c68de8d7390f966e46d9402d5499d2e8ee227;p=paraslash.git diff --git a/gui_common.c b/gui_common.c index 2c499126..d806ebe2 100644 --- a/gui_common.c +++ b/gui_common.c @@ -13,8 +13,9 @@ int para_open_audiod_pipe(char *cmd) int read_audiod_pipe(int fd, void (*line_handler)(char *) ) { - static char buf[STRINGSIZE + 1]; - static ssize_t loaded, bufsize = sizeof(buf); + static char buf[STRINGSIZE]; + const ssize_t bufsize = sizeof(buf) - 1; + static ssize_t loaded; ssize_t ret; if (loaded >= bufsize)