procd: increase watchdog fd_buf storage size to fix gcc8 build error
authorFelix Fietkau <nbd@nbd.name>
Thu, 5 Jul 2018 09:13:31 +0000 (11:13 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 5 Jul 2018 09:13:31 +0000 (11:13 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
watchdog.c

index ec10ba6..7493a0f 100644 (file)
@@ -142,10 +142,11 @@ int watchdog_frequency(int frequency)
 
 char* watchdog_fd(void)
 {
-       static char fd_buf[3];
+       static char fd_buf[12];
 
        if (wdt_fd < 0)
                return NULL;
+
        snprintf(fd_buf, sizeof(fd_buf), "%d", wdt_fd);
 
        return fd_buf;