diff --git a/modules/FvwmAuto/FvwmAuto.c b/modules/FvwmAuto/FvwmAuto.c index d789797a1..8c3a1f17d 100644 --- a/modules/FvwmAuto/FvwmAuto.c +++ b/modules/FvwmAuto/FvwmAuto.c @@ -344,7 +344,7 @@ main(int argc, char **argv) { len += 32; } - buf = safemalloc(len); + buf = safemalloc(len + 1 + 1 ); // '\n' '\0' at the end of the string while (!isTerminated) {