From a0372ac0713957365120cf42c5469c635c1e0232 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 5 Jul 2018 11:13:31 +0200 Subject: [PATCH] procd: increase watchdog fd_buf storage size to fix gcc8 build error Signed-off-by: Felix Fietkau --- watchdog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2