diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-06 17:02:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-06 17:02:07 +0000 |
commit | a91544f80120e95cfd38a5591d258fc520d6c1b8 (patch) | |
tree | 41318f418bc481787ed086e06f2058c8e2dcf234 /sbin/dump | |
parent | 266b44a600dd317fb6e46da4c3758e5b42c4a2a7 (diff) |
buf oflow, from joshd
Diffstat (limited to 'sbin/dump')
-rw-r--r-- | sbin/dump/dumprmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dump/dumprmt.c b/sbin/dump/dumprmt.c index ce03a2ca4f7..39f60986cec 100644 --- a/sbin/dump/dumprmt.c +++ b/sbin/dump/dumprmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dumprmt.c,v 1.2 1996/03/21 00:15:35 niklas Exp $ */ +/* $OpenBSD: dumprmt.c,v 1.3 1996/08/06 17:02:06 deraadt Exp $ */ /* $NetBSD: dumprmt.c,v 1.10 1996/03/15 22:39:26 scottr Exp $ */ /*- @@ -197,7 +197,7 @@ rmtopen(tape, mode) { char buf[256]; - (void)sprintf(buf, "O%s\n%d\n", tape, mode); + (void)snprintf(buf, sizeof buf, "O%s\n%d\n", tape, mode); rmtstate = TS_OPEN; return (rmtcall(tape, buf)); } |