[PATCH] Fix string terminator(s) in lib/charcnv.c

boyang boyang at novell.com
Tue Sep 9 06:58:03 GMT 2008


Hi, everybody:
     convert_string(), convert_string_talloc(),
convert_string_allocate() return the length of converted string
excluding null terminator(s). But some functions use the returned length
as it includes the length of the terminator(s), which is not right.
     Patch for v3-[023]-test and v3-devel arrive in the attachment,
please review them.
     Thanks!
Best
       Regards
BoYang
9th, Sep
-------------- next part --------------
A non-text attachment was scrubbed...
Name: charnv-terminator-v3-0-test.diff
Type: text/x-patch
Size: 953 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080909/3bde144e/charnv-terminator-v3-0-test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: charnv-terminator-v3-2-test.diff
Type: text/x-patch
Size: 2402 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080909/3bde144e/charnv-terminator-v3-2-test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: charnv-terminator-v3-3-test.diff
Type: text/x-patch
Size: 2396 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080909/3bde144e/charnv-terminator-v3-3-test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: charnv-terminator-v3-devel.diff
Type: text/x-patch
Size: 2396 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080909/3bde144e/charnv-terminator-v3-devel.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boyang.vcf
Type: text/x-vcard
Size: 209 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080909/3bde144e/boyang.vcf


More information about the samba-technical mailing list