summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-04-06 21:12:08 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-04-06 21:12:08 +0000
commitf167df2e15cf4f787bf7d66068fd38a330d92d15 (patch)
treeb16221277b98c79ad3c9994dbcd11e60d29d18a7
parent84f6ecf088bd5356c0e5c071092b7e0693ff97b7 (diff)
The last commit incorporated an incomplete change of mine.
-rw-r--r--usr.bin/tic/dump_entry.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tic/dump_entry.c b/usr.bin/tic/dump_entry.c
index 753e6c8ac8f..923a2953d8b 100644
--- a/usr.bin/tic/dump_entry.c
+++ b/usr.bin/tic/dump_entry.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dump_entry.c,v 1.17 2003/04/06 18:38:42 deraadt Exp $ */
+/* $OpenBSD: dump_entry.c,v 1.18 2003/04/06 21:12:07 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998-2000 Free Software Foundation, Inc. *
@@ -655,9 +655,8 @@ fmt_entry(TERMTYPE * tterm,
} else if (suppress_untranslatable) {
continue;
} else {
- char *s = srccap, *d = buffer;
- snprintf(buffer, buffer + sizeof buffer - d, "..%s=",
- name);
+ char *d, *s = srccap;
+ snprintf(buffer, sizeof buffer, "..%s=", name);
d = buffer + strlen(buffer);
while ((*d = *s++) != 0) { /* XXX overflow? */
if (*d == ':') {