artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fa4078
)
(void) cast snprintf call that cannot truncate
author
gilles
<gilles@openbsd.org>
Sat, 19 Apr 2014 17:29:56 +0000
(17:29 +0000)
committer
gilles
<gilles@openbsd.org>
Sat, 19 Apr 2014 17:29:56 +0000
(17:29 +0000)
usr.sbin/smtpd/config.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/config.c
b/usr.sbin/smtpd/config.c
index
67c60df
..
35f051d
100644
(file)
--- a/
usr.sbin/smtpd/config.c
+++ b/
usr.sbin/smtpd/config.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: config.c,v 1.2
7 2014/04/09 18:55:19 eric Exp $
*/
+/* $OpenBSD: config.c,v 1.2
8 2014/04/19 17:29:56 gilles Exp $
*/
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@
-187,7
+187,7
@@
process_stat(struct mproc *p)
return;
value.type = STAT_COUNTER;
- snprintf(buf, sizeof buf, "buffer.%s.%s",
+
(void)
snprintf(buf, sizeof buf, "buffer.%s.%s",
proc_name(smtpd_process),
proc_name(p->proc));
value.u.counter = p->bytes_queued_max;