about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-01-13 09:02:43 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-01-13 09:02:43 +0000
commit7c9c5bff0da245f710bea8f41d1d2d30cc5230d4 (patch)
tree829c7c32f80dd9a7ea96ba9b0bc39596b71616ec /Src
parente066375d012fa9714a71e037dc11ddc4ce608bf9 (diff)
downloadzsh-7c9c5bff0da245f710bea8f41d1d2d30cc5230d4.tar.gz
zsh-7c9c5bff0da245f710bea8f41d1d2d30cc5230d4.tar.xz
zsh-7c9c5bff0da245f710bea8f41d1d2d30cc5230d4.zip
If we are saving the ztrftime() value in a variable, we now metafy
the string (using META_DUP) instead of duplicating it via ztrdup().
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/datetime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/datetime.c b/Src/Modules/datetime.c
index 4a3478800..f01a54ea1 100644
--- a/Src/Modules/datetime.c
+++ b/Src/Modules/datetime.c
@@ -67,7 +67,7 @@ bin_strftime(char *nam, char **argv, Options ops, UNUSED(int func))
     }
 
     if (scalar) {
-	setsparam(scalar, ztrdup(buffer));
+	setsparam(scalar, metafy(buffer, -1, META_DUP));
     } else {
 	printf("%s\n", buffer);
     }