diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-11-28 19:33:07 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-11-28 19:33:07 +0100 |
commit | ea4f33409a978140493a43567fa3a3454ab03479 (patch) | |
tree | 80ed4da77c2c5a69410a32a96f78fea643c61e7d /SignalsPanel.c | |
parent | 7899ae2eb1ec23f5315aee4a2601cbb95bdbf4c2 (diff) |
Update even more snprintfs
Use size of actual buffers instead of magic numbers
Diffstat (limited to 'SignalsPanel.c')
-rw-r--r-- | SignalsPanel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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'; } |