Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177541783
D60879.1794671489.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
524 B
Referenced Files
None
Subscribers
None
D60879.1794671489.diff
View Options
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -2094,9 +2094,9 @@
if (getpeername(s, (struct sockaddr *)&ss, &size) == 0) {
getnameinfo((struct sockaddr *)&ss, size, pbuf, sizeof(pbuf),
NULL, 0, NI_NUMERICHOST);
- (void) sprintf(buf, "%s [%s]", a, pbuf);
+ (void) snprintf(buf, sizeof(buf), "%s [%s]", a, pbuf);
} else
- (void) sprintf(buf, "%s", a);
+ (void) snprintf(buf, sizeof(buf), "%s", a);
setproctitle("%s", buf);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 3:51 PM (7 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41143463
Default Alt Text
D60879.1794671489.diff (524 B)
Attached To
Mode
D60879: inetd: use snprintf() in inetd_setproctitle()
Attached
Detach File
Event Timeline