git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
247324a
)
fish: Fix too-short allocation in tilde expansion (RHBZ#636061).
author
Karel Klíč
<kklic@redhat.com>
Mon, 25 Oct 2010 11:48:36 +0000
(12:48 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 25 Oct 2010 11:48:36 +0000
(12:48 +0100)
fish/tilde.c
patch
|
blob
|
history
diff --git
a/fish/tilde.c
b/fish/tilde.c
index
c599e16
..
83aa70d
100644
(file)
--- a/
fish/tilde.c
+++ b/
fish/tilde.c
@@
-85,7
+85,7
@@
expand_home (const char *append)
home = getenv ("HOME");
if (!home) home = "~";
- len = strlen (home) + (append ? strlen (append) : 0);
+ len = strlen (home) + (append ? strlen (append) : 0)
+ 1
;
str = malloc (len);
if (str == NULL) {
perror ("malloc");