about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-10-24 10:27:25 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-10-24 10:27:25 +0000
commit337530b4d6ef96bcd0fb50438256e288cf9b729c (patch)
tree940b79209832a2787aace312b319bae9b6bbbc02 /Src/utils.c
parentb0e0d901b21721b77dd37bb34909c06e05f010da (diff)
downloadzsh-337530b4d6ef96bcd0fb50438256e288cf9b729c.tar.gz
zsh-337530b4d6ef96bcd0fb50438256e288cf9b729c.tar.xz
zsh-337530b4d6ef96bcd0fb50438256e288cf9b729c.zip
25930: dynamic directory expansion memory handling was screwy
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 5518a16c7..ec2ae5f25 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -863,7 +863,7 @@ finddir(char *s)
 	    (len = (int)zstrtol(ares[1], NULL, 10)) > finddir_best) {
 	    /* better duplicate this string since it's come from REPLY */
 	    finddir_last = (Nameddir)hcalloc(sizeof(struct nameddir));
-	    finddir_last->node.nam = tricat("[", dupstring(ares[0]), "]");
+	    finddir_last->node.nam = zhtricat("[", dupstring(ares[0]), "]");
 	    finddir_last->dir = dupstrpfx(finddir_full, len);
 	    finddir_last->diff = len - strlen(finddir_last->node.nam);
 	    finddir_best = len;