Skip to content

Commit 923e212

Browse files
committed
basic/signal-util: drop unneeded extra byte from buffer
DECIMAL_STR_MAX() already returns +1 for NULL, so no need to do it a second time.
1 parent 97ab9df commit 923e212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic/signal-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static const char *const __signal_table[] = {
198198
DEFINE_PRIVATE_STRING_TABLE_LOOKUP(__signal, int);
199199

200200
const char *signal_to_string(int signo) {
201-
static thread_local char buf[STRLEN("RTMIN+") + DECIMAL_STR_MAX(int) + 1];
201+
static thread_local char buf[STRLEN("RTMIN+") + DECIMAL_STR_MAX(int)];
202202
const char *name;
203203

204204
name = __signal_to_string(signo);

0 commit comments

Comments
 (0)