Skip to content

Commit 7d03584

Browse files
committed
Merge the patch for musl libc.
1 parent b46f680 commit 7d03584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utest/ctest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static void *find_symbol(struct ctest *test, const char *fname)
637637
static void sighandler(int signum)
638638
{
639639
char msg[128];
640-
sprintf(msg, "[SIGNAL %d: %s]", signum, sys_siglist[signum]);
640+
snprintf(msg, sizeof(msg), "[SIGNAL %d: %s]", signum, strsignal(signum));
641641
color_print(ANSI_BRED, msg);
642642
fflush(stdout);
643643

0 commit comments

Comments
 (0)