summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-08-23 08:53:44 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-08-23 08:53:44 +0000
commitb4a6efd3a5cb7af08a0a9fdffe8f0a6ef085cbd6 (patch)
treee794a58dfaacd49d2c456b31b4450bdbd3f90d55 /libexec
parenta159579b87ba202c15c30348d6ffff2882c7944d (diff)
Notes
Diffstat (limited to 'libexec')
-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 8fac305c01ee..fe272eb1771b 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);
}