projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80c974f
)
Provide better sprintf debug output for callers
author
Todd Lyons
<tlyons@exim.org>
Mon, 12 May 2014 15:03:08 +0000
(08:03 -0700)
committer
Todd Lyons
<tlyons@exim.org>
Mon, 12 May 2014 15:03:08 +0000
(08:03 -0700)
src/src/string.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/string.c
b/src/src/string.c
index 365eaec030869f23c42397075ced444ff49b50ad..f216e5a86e01d759757ab69b147cf565c2c51001 100644
(file)
--- a/
src/src/string.c
+++ b/
src/src/string.c
@@
-717,7
+717,8
@@
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, sizeof(buffer));
+ "string_sprintf expansion was longer than " SIZE_T_FMT " (%s)",
+ sizeof(buffer), format);
va_end(ap);
return string_copy(buffer);
}