From ea4f33409a978140493a43567fa3a3454ab03479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 28 Nov 2020 19:33:07 +0100 Subject: Update even more snprintfs Use size of actual buffers instead of magic numbers --- SignalsPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SignalsPanel.c') diff --git a/SignalsPanel.c b/SignalsPanel.c index 7937c5dc..436fc579 100644 --- a/SignalsPanel.c +++ b/SignalsPanel.c @@ -35,7 +35,7 @@ Panel* SignalsPanel_new() { static char buf[16]; for (int sig = SIGRTMIN; sig <= SIGRTMAX; i++, sig++) { int n = sig - SIGRTMIN; - xSnprintf(buf, 16, "%2d SIGRTMIN%-+3d", sig, n); + xSnprintf(buf, sizeof(buf), "%2d SIGRTMIN%-+3d", sig, n); if (n == 0) { buf[11] = '\0'; } -- cgit v1.2.3