summaryrefslogtreecommitdiff
path: root/libexec/rlogind
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-08-20 12:50:21 +0000
committerBrian Somers <brian@FreeBSD.org>2001-08-20 12:50:21 +0000
commit2449bf28adca16e49c811264b39a8727e46caf53 (patch)
treec1fa3343ede9a1d367c7206b7d1a5e349de54cc1 /libexec/rlogind
parentb1743630356c4ef54abb3ea67c92c4dc116a4f9f (diff)
Notes
Diffstat (limited to 'libexec/rlogind')
-rw-r--r--libexec/rlogind/rlogind.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index f0df9dfd099c..2719d0962ee5 100644
--- a/libexec/rlogind/rlogind.c
+++ b/libexec/rlogind/rlogind.c
@@ -555,6 +555,8 @@ fatal(f, msg, syserr)
msg, strerror(errno));
else
len = snprintf(bp, sizeof(buf), "rlogind: %s.\r\n", msg);
+ if (len == -1)
+ len = 0;
(void) write(f, buf, bp + len - buf);
exit(1);
}