about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-12-09 14:58:36 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-12-09 14:58:36 +0000
commit6e58a1df8faab311a0479ef630b891ef50fd3f14 (patch)
treed5c9e2b34b23ea10d6bba734c6332f6ee5bd5a89 /Src/Modules
parent0eed895796ee98a5733f4dcb8cf8297ea805a99c (diff)
downloadzsh-6e58a1df8faab311a0479ef630b891ef50fd3f14.tar.gz
zsh-6e58a1df8faab311a0479ef630b891ef50fd3f14.tar.xz
zsh-6e58a1df8faab311a0479ef630b891ef50fd3f14.zip
24197: interface to ztrftime() for insufficient memory was broken
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/datetime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Modules/datetime.c b/Src/Modules/datetime.c
index 169369d5f..328870eba 100644
--- a/Src/Modules/datetime.c
+++ b/Src/Modules/datetime.c
@@ -1,5 +1,5 @@
 /*
- * datetime.c - parameter interface to langinfo via curses
+ * datetime.c - parameter and command interface to date and time utilities
  *
  * This file is part of zsh, the Z shell.
  *
@@ -121,7 +121,7 @@ bin_strftime(char *nam, char **argv, Options ops, UNUSED(int func))
     }
 
     t = localtime(&secs);
-    bufsize = strlen(argv[0]) * 2;
+    bufsize = strlen(argv[0]) * 8;
     buffer = zalloc(bufsize);
 
     for (x=0; x < 4; x++) {