git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug in my conversion of Tom's snprintf to string_vformat. Also make
[exim.git]
/
src
/
src
/
string.c
diff --git
a/src/src/string.c
b/src/src/string.c
index 1679e8850e568d728cdf89687f27983c68351382..f64641dd6c5fe57969df80180697e6cfb78d8cb7 100644
(file)
--- a/
src/src/string.c
+++ b/
src/src/string.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/string.c,v 1.
6 2005/06/17 13:52:1
5 ph10 Exp $ */
+/* $Cambridge: exim/src/src/string.c,v 1.
7 2005/06/20 10:04:5
5 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* Exim - an Internet mail transport agent *
@@
-1075,7
+1075,8
@@
while (*fp != 0)
case 'u':
case 'x':
case 'X':
case 'u':
case 'x':
case 'X':
- if (p >= last - 24) { yield = FALSE; goto END_FORMAT; }
+ if (p >= last - ((length > L_LONG)? 24 : 12))
+ { yield = FALSE; goto END_FORMAT; }
strncpy(newformat, item_start, fp - item_start);
newformat[fp - item_start] = 0;
strncpy(newformat, item_start, fp - item_start);
newformat[fp - item_start] = 0;