[uClibc] Re: ttyname patch

Erik Andersen andersen at codepoet.org
Mon Sep 1 14:56:51 UTC 2003


On Fri Aug 29, 2003 at 09:00:49PM -0600, Gregory Nutt wrote:
> Erik,
> 
> 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.
> 
> Greg Nutt

applied

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list