]> diplodocus.org Git - nmh/commitdiff
Bump up size of two static char[] so gcc knows they won't overflow.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Jul 2017 11:58:38 +0000 (12:58 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Jul 2017 11:58:38 +0000 (12:58 +0100)
sbr/dtime.c

index 481cfe6e504b8d8bb6e61e0312afc472ee6a7dc5..d52662bc4b457ee2317cee82ec8f1dd8953f77f0 100644 (file)
@@ -178,7 +178,7 @@ dgmtime (time_t *clock)
 char *
 dctime (struct tws *tw)
 {
 char *
 dctime (struct tws *tw)
 {
-    static char buffer[26];
+    static char buffer[64];
 
     if (!tw)
        return NULL;
 
     if (!tw)
        return NULL;
@@ -288,7 +288,7 @@ char *
 dtimezone (int offset, int flags)
 {
     int hours, mins;
 dtimezone (int offset, int flags)
 {
     int hours, mins;
-    static char buffer[10];
+    static char buffer[64];
 
     if (offset < 0) {
        mins = -((-offset) % 60);
 
     if (offset < 0) {
        mins = -((-offset) % 60);