diff options
| author | Warner Losh <imp@FreeBSD.org> | 1997-02-09 04:40:02 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1997-02-09 04:40:02 +0000 |
| commit | 5b266377fde42387b3f85ba2c65725eb2c57a9e6 (patch) | |
| tree | dc1a018d36869ca2b9835a9bf592f32f5c37198c /libexec/rexecd | |
| parent | 70dc969961bb4876b1381d577236c355e35154a8 (diff) | |
Notes
Diffstat (limited to 'libexec/rexecd')
| -rw-r--r-- | libexec/rexecd/rexecd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rexecd/rexecd.c b/libexec/rexecd/rexecd.c index df415dc8ab59..163eefc95bb5 100644 --- a/libexec/rexecd/rexecd.c +++ b/libexec/rexecd/rexecd.c @@ -289,7 +289,7 @@ error(fmt, a1, a2, a3) char buf[BUFSIZ]; buf[0] = 1; - (void) sprintf(buf+1, fmt, a1, a2, a3); + (void) snprintf(buf+1, sizeof(buf) - 1, fmt, a1, a2, a3); (void) write(2, buf, strlen(buf)); } |
