diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-07-27 16:07:50 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-07-27 16:07:50 -0300 |
commit | 09e241fb1271021e3615512debd3136891547562 (patch) | |
tree | 8245b6084607a34185cfa7d3d45f5228937020f1 /SignalsPanel.c | |
parent | 3975e9ce5cba0e3972b2ddab28c198e000441501 (diff) |
Security review: check results of snprintf.
Calls marked with xSnprintf shouldn't fail.
Abort program cleanly if any of them does.
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 34fef4b5..fea2ac72 100644 --- a/SignalsPanel.c +++ b/SignalsPanel.c @@ -44,7 +44,7 @@ Panel* SignalsPanel_new() { static char buf[15]; for (int sig = SIGRTMIN; sig <= SIGRTMAX; i++, sig++) { int n = sig - SIGRTMIN; - snprintf(buf, 15, "%2d SIGRTMIN%-+3d", sig, n); + xSnprintf(buf, 15, "%2d SIGRTMIN%-+3d", sig, n); if (n == 0) { buf[11] = '\0'; } |