summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-03-05 11:37:25 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-03-05 11:37:25 +0000
commitfe1dd0d9d16a15a1df9b19af6df8e5b2eeff3d4c (patch)
treec80c191fee8e52f89926f0a92edd62078d02805f
parent9d3a526da24c7517ac7cb322191fb0d08963a04e (diff)
Notes
-rw-r--r--crypto/telnet/telnetd/utility.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/telnet/telnetd/utility.c b/crypto/telnet/telnetd/utility.c
index dc695fa690cc..da018283fa8d 100644
--- a/crypto/telnet/telnetd/utility.c
+++ b/crypto/telnet/telnetd/utility.c
@@ -361,7 +361,7 @@ fatal(f, msg)
{
char buf[BUFSIZ];
- (void) sprintf(buf, "telnetd: %s.\r\n", msg);
+ (void) snprintf(buf, sizeof(buf), "telnetd: %s.\r\n", msg);
#ifdef ENCRYPTION
if (encrypt_output) {
/*
@@ -384,7 +384,7 @@ fatalperror(f, msg)
{
char buf[BUFSIZ], *strerror();
- (void) sprintf(buf, "%s: %s", msg, strerror(errno));
+ (void) snprintf(buf, sizeof(buf), "%s: %s", msg, strerror(errno));
fatal(f, buf);
}