projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd6966
)
Null terminate pdkim string. Fixes: #985
author
Nigel Metheringham
<nigel@exim.org>
Sat, 29 May 2010 19:14:06 +0000
(19:14 +0000)
committer
Nigel Metheringham
<nigel@exim.org>
Sat, 29 May 2010 19:14:06 +0000
(19:14 +0000)
src/src/pdkim/pdkim.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/pdkim/pdkim.c
b/src/src/pdkim/pdkim.c
index 3385fecc823db7363844c3d3702adfa83db2dc65..fa5d88d599927fd11a41f78b90587c94ae804475 100644
(file)
--- a/
src/src/pdkim/pdkim.c
+++ b/
src/src/pdkim/pdkim.c
@@
-20,7
+20,7
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/* $Cambridge: exim/src/src/pdkim/pdkim.c,v 1.1
3 2010/05/29 18:59:18
nm4 Exp $ */
+/* $Cambridge: exim/src/src/pdkim/pdkim.c,v 1.1
4 2010/05/29 19:14:06
nm4 Exp $ */
#include <stdlib.h>
#include <stdio.h>
@@
-211,6
+211,7
@@
pdkim_str *pdkim_strnew (char *cstr) {
p->allocated=(len+1);
p->len=len;
if (cstr) strcpy(p->str,cstr);
+ else p->str[p->len] = '\0';
return p;
}
char *pdkim_strncat(pdkim_str *str, char *data, int len) {