diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-09-01 14:56:33 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-09-01 14:56:33 +0000 |
commit | e4668543352aa58a0aaa03fe9624daa75fd6da34 (patch) | |
tree | 79423ebf91a1b5ab161d6dddb575161d3207d1ee /include/sys/param.h | |
parent | 8f15281c9cf4ffcf39fd8b2fb353aa103f3a528d (diff) |
Greg Nutt writes:
Attached is a patch for a bug I found in libc/termios/ttyname.c.
Essentially the length of the buffer is calculated incorrectly in a
strncpy call and then the null terminator is placed on the byte after
the buffer.
This probably cause some very strange behavior on my system (it ended up
setting malloc's heapsize to zero) but may be innocuous on other systems.
Diffstat (limited to 'include/sys/param.h')
0 files changed, 0 insertions, 0 deletions