summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/tilde.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/tilde.c')
-rw-r--r--contrib/libreadline/tilde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libreadline/tilde.c b/contrib/libreadline/tilde.c
index 1d38d9d..fe263a2 100644
--- a/contrib/libreadline/tilde.c
+++ b/contrib/libreadline/tilde.c
@@ -189,7 +189,7 @@ tilde_expand (string)
if (result = strchr (string, '~'))
result = xmalloc (result_size = (strlen (string) + 16));
else
- result = xmalloc (result_size = strlen (string));
+ result = xmalloc (result_size = (strlen (string) + 1));
/* Scan through STRING expanding tildes as we come to them. */
while (1)
OpenPOWER on IntegriCloud