summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-04-13 19:16:50 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-04-13 19:16:50 +0000
commit6b80ee09587199877b31faca6357cc89cc16a2a4 (patch)
treeec2c6d07cbb7637e9112283afeeb5e65e72aeba9 /usr.bin
parent0f03de162a30590bc9b83c42105f83d7550186a4 (diff)
correct snprintf bound value, ok millert@, deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/undo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/undo.c b/usr.bin/mg/undo.c
index 769f40fd1a7..c63f3805b3e 100644
--- a/usr.bin/mg/undo.c
+++ b/usr.bin/mg/undo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: undo.c,v 1.14 2002/09/15 22:18:39 vincent Exp $ */
+/* $OpenBSD: undo.c,v 1.15 2003/04/13 19:16:49 avsm Exp $ */
/*
* Copyright (c) 2002 Vincent Labrecque
* All rights reserved.
@@ -401,7 +401,7 @@ undo_dump(void)
strlcat(buf, tmp, sizeof buf);
strlcat(buf, "\"", sizeof buf);
}
- snprintf(tmp, sizeof buf, " [%d]", rec->region.r_size);
+ snprintf(tmp, sizeof tmp, " [%d]", rec->region.r_size);
strlcat(buf, tmp, sizeof buf);
addlinef(bp, buf);
}