summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syslogd.c b/syslogd.c
index a89563a9..f8509f97 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -5312,7 +5312,7 @@ void fprintlog(register struct filed *f)
if(destLen+1 < l) {
dprintf("there is gain in compression, so we do it\n");
psz = out;
- l = destLen;
+ l = destLen + 1; /* take care for the "z" at message start! */
}
++destLen;
# endif