diff options
Diffstat (limited to 'net-irc/eggdrop/files/eggdrop-1.6.15-potential-undef-tm-struct.patch')
-rw-r--r-- | net-irc/eggdrop/files/eggdrop-1.6.15-potential-undef-tm-struct.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net-irc/eggdrop/files/eggdrop-1.6.15-potential-undef-tm-struct.patch b/net-irc/eggdrop/files/eggdrop-1.6.15-potential-undef-tm-struct.patch new file mode 100644 index 000000000000..c23179e1acff --- /dev/null +++ b/net-irc/eggdrop/files/eggdrop-1.6.15-potential-undef-tm-struct.patch @@ -0,0 +1,14 @@ +diff -rcN eggdrop-1.6.15.orig/src/misc.c eggdrop-1.6.15/src/misc.c +*** eggdrop-1.6.15.orig/src/misc.c Sun May 4 18:05:32 2003 +--- eggdrop-1.6.15/src/misc.c Sat Jun 28 00:37:08 2003 +*************** +*** 509,514 **** +--- 509,516 ---- + egg_vsnprintf(out, LOGLINEMAX - tsl, format, va); + out[LOGLINEMAX - tsl] = 0; + if (keep_all_logs) { ++ /* GENTOO: this needs to be here in case shtime is false */ ++ t = localtime(&now2); + if (!logfile_suffix[0]) + egg_strftime(ct, 12, ".%d%b%Y", t); + else { |