summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/tilde.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-11-06 00:50:44 +0000
committerache <ache@FreeBSD.org>1997-11-06 00:50:44 +0000
commit53ee3efdd804d38a5c57372c0722804607ceb256 (patch)
treec802b76553a2996dbcb9480ae4a44c20538b9331 /contrib/libreadline/tilde.c
parentb6bac891b077ba9da2b507a621c4a85d8eb378f1 (diff)
downloadFreeBSD-src-53ee3efdd804d38a5c57372c0722804607ceb256.zip
FreeBSD-src-53ee3efdd804d38a5c57372c0722804607ceb256.tar.gz
Update to current bash version
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