1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/www/bk2site/files/patch-reference.C
Alexander Leidinger 20e3279693 Add patches for two nasty bugs:
- fix "chunk is already free": nasty (and free of side effects in the
   actual code) but works (patch-reference.C)
 - fix refcounting (now my links page shows the tophits again... finally)

Approved by:	maintainer
2005-02-19 18:19:23 +00:00

12 lines
347 B
C

--- reference.C.orig Fri Feb 18 21:11:01 2005
+++ reference.C Fri Feb 18 21:17:18 2005
@@ -305,7 +305,7 @@
string getRFC822Time (long int time){
time_t li = time;
struct tm * t = localtime(&li);
- char formatedTime[100];
+ static char formatedTime[100];
strftime(formatedTime, 100, "%a, %d %b %Y %T %Z", t);
return formatedTime;
}