projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfb68f8
)
procd: increase watchdog fd_buf storage size to fix gcc8 build error
author
Felix Fietkau
<nbd@nbd.name>
Thu, 5 Jul 2018 09:13:31 +0000
(11:13 +0200)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/watchdog.c
b/watchdog.c
index ec10ba6188ca39138a46b805becc91a18ba2c059..7493a0f51b3b0e244d918aa1b3505cf522f61b9a 100644
(file)
--- 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;