From: Felix Fietkau Date: Thu, 5 Jul 2018 09:13:31 +0000 (+0200) Subject: procd: increase watchdog fd_buf storage size to fix gcc8 build error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a0372ac0713957365120cf42c5469c635c1e0232;p=project%2Fprocd.git procd: increase watchdog fd_buf storage size to fix gcc8 build error Signed-off-by: Felix Fietkau --- diff --git a/watchdog.c b/watchdog.c index ec10ba6..7493a0f 100644 --- a/watchdog.c +++ b/watchdog.c @@ -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;