about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
     }