about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/utils.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f11eebe4e..427725564 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-01-25  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* 34383: Src/utils.c: new ztrdup() shoud be dupstring().
+
 2015-01-25  Oliver Kiddle  <opk@zsh.org>
 
 	* 34373, 34374: Completion/Unix/Command/_chown,
diff --git a/Src/utils.c b/Src/utils.c
index cf18f1240..0490df516 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1114,7 +1114,7 @@ getnameddir(char *name)
 		zsfree(dir);
 		return str;
 	    } else
-		return ztrdup(pw->pw_dir);
+		return dupstring(pw->pw_dir);
 	}
     }
 #endif /* HAVE_GETPWNAM */