diff options
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c index 2fc6cefa9d..83c8b4f4a0 100644 --- a/src/message.c +++ b/src/message.c @@ -353,7 +353,7 @@ trunc_string( else { // can't fit in the "...", just truncate it - buf[e - 1] = NUL; + buf[buflen - 1] = NUL; } } |