projects
/
vms-empire.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8720e60
)
Prevent a possible overrun bug.
author
Eric S. Raymond
<esr@thyrsus.com>
Fri, 3 Jan 2014 20:11:21 +0000
(15:11 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Fri, 3 Jan 2014 20:11:21 +0000
(15:11 -0500)
term.c
patch
|
blob
|
history
diff --git
a/term.c
b/term.c
index
1b4399a
..
8978925
100644
(file)
--- a/
term.c
+++ b/
term.c
@@
-63,7
+63,7
@@
static void vtopmsg(int line, const char *fmt, va_list varglist)
if (line < 1 || line > NUMTOPS)
line = 1;
(void) move (line - 1, 0);
- vs
printf(junkbuf
, fmt, varglist);
+ vs
nprintf(junkbuf, sizeof(junkbuf)
, fmt, varglist);
(void) addstr (junkbuf);
(void) clrtoeol();
}