summaryrefslogtreecommitdiff
path: root/src/basic/signal-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/signal-util.c')
-rw-r--r--src/basic/signal-util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/basic/signal-util.c b/src/basic/signal-util.c
index fd9258dfca..315efadd93 100644
--- a/src/basic/signal-util.c
+++ b/src/basic/signal-util.c
@@ -23,9 +23,10 @@
#include <stdarg.h>
#include <stdio.h>
+#include "macro.h"
#include "parse-util.h"
#include "signal-util.h"
-#include "macro.h"
+#include "stdio-util.h"
#include "string-table.h"
#include "string-util.h"
@@ -234,9 +235,9 @@ const char *signal_to_string(int signo) {
return name;
if (signo >= SIGRTMIN && signo <= SIGRTMAX)
- snprintf(buf, sizeof(buf), "RTMIN+%d", signo - SIGRTMIN);
+ xsprintf(buf, "RTMIN+%d", signo - SIGRTMIN);
else
- snprintf(buf, sizeof(buf), "%d", signo);
+ xsprintf(buf, "%d", signo);
return buf;
}