Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/snprintf-truncation'
[gitweb.git]
/
imap-send.c
diff --git
a/imap-send.c
b/imap-send.c
index 3573cbfb0fca7d524f3d3531f9f97ebeabdd15e6..b4eb886e2a6a40bce1e478d8d24f43f64ed2e3aa 100644
(file)
--- a/
imap-send.c
+++ b/
imap-send.c
@@
-511,7
+511,7
@@
static int nfsnprintf(char *buf, int blen, const char *fmt, ...)
va_start(va, fmt);
if (blen <= 0 || (unsigned)(ret = vsnprintf(buf, blen, fmt, va)) >= (unsigned)blen)
-
die("BUG:
buffer too small. Please report a bug.");
+
BUG("
buffer too small. Please report a bug.");
va_end(va);
return ret;
}