From 337530b4d6ef96bcd0fb50438256e288cf9b729c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 24 Oct 2008 10:27:25 +0000 Subject: 25930: dynamic directory expansion memory handling was screwy --- Src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/utils.c') 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; -- cgit 1.4.1