diff options
Diffstat (limited to 'lib/readline/tilde.c')
-rw-r--r-- | lib/readline/tilde.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readline/tilde.c b/lib/readline/tilde.c index 1d38d9d4..fe263a26 100644 --- a/lib/readline/tilde.c +++ b/lib/readline/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) |