diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-09-30 16:23:42 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-09-30 16:23:42 +0100 |
commit | 7e09992e0fb2d70750a686939636cf40f2a06ae3 (patch) | |
tree | cf4ea1123a86c7a946bbc6166f9d58cf6dee6449 /src | |
parent | f1bd189be5977fef5d0b477d987ce1090316e3cd (diff) |
Increase verbosity of (panic)log message for string_sprintf overflow
Diffstat (limited to 'src')
-rw-r--r-- | src/src/string.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/src/string.c b/src/src/string.c index a3fbc4ea5..b76b0abbc 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -717,8 +717,9 @@ uschar buffer[STRING_SPRINTF_BUFFER_SIZE]; va_start(ap, format); if (!string_vformat(buffer, sizeof(buffer), format, ap)) log_write(0, LOG_MAIN|LOG_PANIC_DIE, - "string_sprintf expansion was longer than " SIZE_T_FMT " (%s)", - sizeof(buffer), format); + "string_sprintf expansion was longer than " SIZE_T_FMT + "; format string was (%s)\nexpansion started '%.32s'", + sizeof(buffer), format, buffer); va_end(ap); return string_copy(buffer); } |