aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/gpgmeplug.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-07-01 13:09:18 +0000
committerWerner Koch <[email protected]>2002-07-01 13:09:18 +0000
commitca43df065f8f1605b2ac32fa8635c25082f27bcf (patch)
tree8c73cea47c54a6e64ca02f687edc940f700a89a7 /gpgmeplug/gpgmeplug.c
parent* gpgmeplug.c (findCertificates): Reintroduced a free which must (diff)
downloadgpgme-ca43df065f8f1605b2ac32fa8635c25082f27bcf.tar.gz
gpgme-ca43df065f8f1605b2ac32fa8635c25082f27bcf.zip
(xstrdup): Oops, obviously I calculated the length wrong when
coded this. Tsss, wrote xstrdup some hundreds times but missed it this time. Thanks to Steffen Hansen for noticing it.
Diffstat (limited to '')
-rw-r--r--gpgmeplug/gpgmeplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c
index 7a2ea259..0b039a41 100644
--- a/gpgmeplug/gpgmeplug.c
+++ b/gpgmeplug/gpgmeplug.c
@@ -239,7 +239,7 @@ xmalloc (size_t n)
static char *
xstrdup (const char *string)
{
- char *p = xmalloc (strlen (string));
+ char *p = xmalloc (strlen (string)+1);
strcpy (p, string);
return p;
}