[Patch]: Unicode length

Corinna Vinschen vinschen@redhat.com
Thu Jun 17 06:46:00 GMT 2004


On Jun 16 22:55, Pierre A. Humblet wrote:
> This is a full implementation of what I started yesterday, with
> more robust protection against string buffer overflows.
> 
> I also reorganized the debug_printf in fhandler_base::openX
> 
> Pierre
> 
> 2004-06-17  Pierre Humblet <pierre.humblet@ieee.org>
> 
> 	* fhandler.cc (fhandler_base::open_9x): Do not check for null name.
> 	Move debug_printf to common code line.
> 	(fhandler_base::open): Ditto. Initialize upath. Remove second argument
>  	of pc.get_nt_native_path.
> 	* path.h (path_conv::get_nt_native_path): Remove second argument.
> 	* path.cc (path_conv::get_nt_native_path): Ditto. Call str2uni_cat.
> 	* security.h (str2buf2uni_cat): Delete declaration.
> 	(str2uni_cat): New declaration.
> 	* security.cc (str2buf2uni): Get length from sys_mbstowcs call.
> 	(str2buf2uni_cat): Delete function.
> 	(str2uni_cat): New function.
> 	* miscfuncs.cc (sys_mbstowcs): Add debug_printf.

Cool with me.  Please check it in.

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list