[patch] eliminate use-cases of obsolete functions

Corinna Vinschen vinschen@redhat.com
Wed Aug 24 11:48:00 GMT 2011


On Aug 23 07:09, Ralf Corsepius wrote:
> Hi,
> 
> The patch below is aiming at eliminating two use-cases of functions
> POSIX has declared obsolete.
> 
> Ralf
> 
> NB.: I am not sure, if using memcpy instead of bcopy is correct or
> if this bcopy should better be replaced with memmove, because I
> don't know if setenv_r's src/dst memory areas may overlap or not.

> 2011-08-23  Ralf Cors??pius  <...>
> 
> 	* libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index".
> 	* libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".

Excellent.  Please go ahead.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat



More information about the Newlib mailing list