diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2006-01-13 09:02:43 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2006-01-13 09:02:43 +0000 |
commit | 7c9c5bff0da245f710bea8f41d1d2d30cc5230d4 (patch) | |
tree | 829c7c32f80dd9a7ea96ba9b0bc39596b71616ec /Src | |
parent | e066375d012fa9714a71e037dc11ddc4ce608bf9 (diff) | |
download | zsh-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.c | 2 |
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); } |