blob: 8f56f66412f5b7dc697856464e91efb6047ebd9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-av,v 1.2 2008/05/13 15:15:51 obache Exp $
--- src/hooks/abstracthook.cc.orig 2008-04-08 17:51:09.000000000 +0000
+++ src/hooks/abstracthook.cc
@@ -758,7 +758,7 @@ string abstracthook::getTimezoneIDtoStri
if(id > 24 || id < -24) {
return "Unspecified";
} else {
- char buf[32];
+ static char buf[32];
snprintf(buf, sizeof(buf), "GMT %s%d:%s", id > 0 ? "-" : "+", abs(id/2), id % 2 == 0 ? "00" : "30");
return buf;
}
|