artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f8a06d
)
(void) cast a snprintf() call that cannot truncate
author
gilles
<gilles@openbsd.org>
Sat, 19 Apr 2014 16:26:23 +0000
(16:26 +0000)
committer
gilles
<gilles@openbsd.org>
Sat, 19 Apr 2014 16:26:23 +0000
(16:26 +0000)
usr.sbin/smtpd/smtp_session.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/smtp_session.c
b/usr.sbin/smtpd/smtp_session.c
index
fbf491e
..
d2251e2
100644
(file)
--- a/
usr.sbin/smtpd/smtp_session.c
+++ b/
usr.sbin/smtpd/smtp_session.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: smtp_session.c,v 1.20
0 2014/04/09 18:55:19 eric Exp $
*/
+/* $OpenBSD: smtp_session.c,v 1.20
1 2014/04/19 16:26:23 gilles Exp $
*/
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@
-1951,7
+1951,7
@@
smtp_strstate(int state)
CASE(STATE_BODY);
CASE(STATE_QUIT);
default:
- snprintf(buf, sizeof(buf), "STATE_??? (%d)", state);
+
(void)
snprintf(buf, sizeof(buf), "STATE_??? (%d)", state);
return (buf);
}
}