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
commit48d5f5c4e5389e95acfd5cf25aa5d3eb553682f3 (patch)
tree2dc8f9e9c06395642650ee480841302dc1d61c4f /contrib/libreadline/tilde.c
parent9591c8cdcea290e4603450129e8cfcd3a4bb2d36 (diff)
parent53ee3efdd804d38a5c57372c0722804607ceb256 (diff)
downloadFreeBSD-src-48d5f5c4e5389e95acfd5cf25aa5d3eb553682f3.zip
FreeBSD-src-48d5f5c4e5389e95acfd5cf25aa5d3eb553682f3.tar.gz
This commit was generated by cvs2svn to compensate for changes in r30971,
which included commits to RCS files with non-trunk default branches.
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