mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
24197: interface to ztrftime() for insufficient memory was broken
This commit is contained in:
parent
0eed895796
commit
6e58a1df8f
3 changed files with 11 additions and 6 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue