artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90d3ec8
)
Added NetBSD fix for overflow. Probably not exploitable because it's a static.
author
bitblt
<bitblt@openbsd.org>
Sun, 16 Mar 1997 22:15:20 +0000
(22:15 +0000)
committer
bitblt
<bitblt@openbsd.org>
Sun, 16 Mar 1997 22:15:20 +0000
(22:15 +0000)
lib/libterm/tgoto.c
patch
|
blob
|
history
diff --git
a/lib/libterm/tgoto.c
b/lib/libterm/tgoto.c
index
a859ce1
..
d678c06
100644
(file)
--- a/
lib/libterm/tgoto.c
+++ b/
lib/libterm/tgoto.c
@@
-210,6
+210,6
@@
setwhich:
goto toohard;
}
}
- str
cpy(dp, added
);
+ str
ncpy(dp, added, sizeof (result) - (dp - result) - 1
);
return (result);
}