projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libcollectclient: snprintf already NUL-terminates
[collectd.git]
/
src
/
notify_desktop.c
diff --git
a/src/notify_desktop.c
b/src/notify_desktop.c
index
d167fbf
..
255230b
100644
(file)
--- a/
src/notify_desktop.c
+++ b/
src/notify_desktop.c
@@
-93,7
+93,7
@@
static int c_notify(const notification_t *n,
timeout = fail_timeout;
}
- s
s
nprintf(summary, sizeof(summary), "collectd %s notification",
+ snprintf(summary, sizeof(summary), "collectd %s notification",
(NOTIF_FAILURE == n->severity)
? "FAILURE"
: (NOTIF_WARNING == n->severity)