summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-02-09 04:41:22 +0000
committerWarner Losh <imp@FreeBSD.org>1997-02-09 04:41:22 +0000
commitb8498bde4adb770a3f381cb84349a1ef5acc2529 (patch)
tree191131a87e2af245a2524697295f8e9ba43742ce /libexec
parent28aa8fa1440b8fd7f636f2e6148237acc21f9dda (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rexecd/rexecd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rexecd/rexecd.c b/libexec/rexecd/rexecd.c
index 23ffd0acfb1f..414f90372e43 100644
--- a/libexec/rexecd/rexecd.c
+++ b/libexec/rexecd/rexecd.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: rexecd.c,v 1.8 1996/09/22 21:54:45 wosch Exp $
+ * $Id: rexecd.c,v 1.5.4.4 1996/11/22 09:01:35 pst Exp $
*/
#ifndef lint
@@ -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));
}