aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/gpgmeplug.c
diff options
context:
space:
mode:
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;
}