diff options
author | Werner Koch <[email protected]> | 2009-08-26 08:55:57 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-08-26 08:55:57 +0000 |
commit | 5134fee5b090d68b19924ccad1994ce37732b91c (patch) | |
tree | 1f31fc25eabc362c1dba637ee211bf9fb9d83d13 /jnlib/t-support.c | |
parent | Fix debian bug#543530 (diff) | |
download | gnupg-5134fee5b090d68b19924ccad1994ce37732b91c.tar.gz gnupg-5134fee5b090d68b19924ccad1994ce37732b91c.zip |
Implement tilde expansion in the same was as 1.4.
Diffstat (limited to 'jnlib/t-support.c')
-rw-r--r-- | jnlib/t-support.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jnlib/t-support.c b/jnlib/t-support.c index 756c54c7f..d8eba3b59 100644 --- a/jnlib/t-support.c +++ b/jnlib/t-support.c @@ -56,7 +56,10 @@ gcry_xmalloc (size_t n) char * gcry_strdup (const char *string) { - return malloc (strlen (string)+1); + char *p = malloc (strlen (string)+1); + if (p) + strcpy (p, string); + return p; } |