diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2000-08-23 08:53:44 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2000-08-23 08:53:44 +0000 |
| commit | b4a6efd3a5cb7af08a0a9fdffe8f0a6ef085cbd6 (patch) | |
| tree | e794a58dfaacd49d2c456b31b4450bdbd3f90d55 /libexec | |
| parent | a159579b87ba202c15c30348d6ffff2882c7944d (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/rlogind/rlogind.c | 4 |
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); } |
