aboutsummaryrefslogtreecommitdiff
path: root/libexec/rlogind
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-08-04 10:39:34 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-08-04 10:39:34 +0000
commit769ec4a81a06cc41b15f944c7f5b494aaa8ba2c3 (patch)
tree0d6201143e14219616d787f593ae2f72c97582dd /libexec/rlogind
parentf1c418cfd499501e381a986460cca8ff2f6d29f5 (diff)
Notes
Diffstat (limited to 'libexec/rlogind')
-rw-r--r--libexec/rlogind/rlogind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index 8fac305c01ee9..fe272eb1771be 100644
--- a/libexec/rlogind/rlogind.c
+++ b/libexec/rlogind/rlogind.c
@@ -558,10 +558,10 @@ fatal(f, msg, syserr)
if (!confirmed)
*bp++ = '\01'; /* error indicator */
if (syserr)
- len = sprintf(bp, "rlogind: %s: %s.\r\n",
+ len = snprintf(bp, sizeof(buf), "rlogind: %s: %s.\r\n",
msg, strerror(errno));
else
- len = sprintf(bp, "rlogind: %s.\r\n", msg);
+ len = snprintf(bp, sizeof(buf), "rlogind: %s.\r\n", msg);
(void) write(f, buf, bp + len - buf);
exit(1);
}