diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-11-06 00:50:44 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-11-06 00:50:44 +0000 |
commit | 7c3c5c1539ea95d2a1c5b0d3da5711bad397660d (patch) | |
tree | c802b76553a2996dbcb9480ae4a44c20538b9331 /contrib/libreadline/tilde.c | |
parent | 933f368172458b72e1a1e36f6cab3d618e9595f4 (diff) |
Notes
Diffstat (limited to 'contrib/libreadline/tilde.c')
-rw-r--r-- | contrib/libreadline/tilde.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libreadline/tilde.c b/contrib/libreadline/tilde.c index 1d38d9d461f3..fe263a2605c7 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) |