Date:   Fri Jan 17 04:58:44 2003
Author: tridge

Update of /home/cvs/samba/source/rpc_parse
In directory dp.samba.org:/tmp/cvs-serv3428/rpc_parse

Modified Files:
        parse_dfs.c parse_lsa.c parse_misc.c parse_net.c parse_reg.c 
        parse_samr.c parse_spoolss.c parse_srv.c 
Log Message:
This removes the 3rd argument from init_unistr2(). There were 240
calls to init_unistr2() in the code and every one of them got the 3rd
argument incorrect, so I thought it best just to remove the argument.

The incorrect usage was caused by callers using strlen() to determine
the length of the string. The 3rd argument to init_unistr2() was
supposed to be the character length, not the byte length of the
string, so for non-english this could come out wrong.

I also removed the bogus 'always allocate at least 256 bytes'
hack. There may be some code that relies on this, but if there is then
the code is broken and needs fixing. 



Revisions:
parse_dfs.c             1.13 => 1.14
        
http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_dfs.c?r1=1.13&r2=1.14
parse_lsa.c             1.83 => 1.84
        
http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_lsa.c?r1=1.83&r2=1.84
parse_misc.c            1.104 => 1.105
        
http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_misc.c?r1=1.104&r2=1.105
parse_net.c             1.98 => 1.99
        
http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_net.c?r1=1.98&r2=1.99
parse_reg.c             1.66 => 1.67
        
http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_reg.c?r1=1.66&r2=1.67
parse_samr.c            1.161 => 1.162
        
http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_samr.c?r1=1.161&r2=1.162
parse_spoolss.c         1.196 => 1.197
        
http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_spoolss.c?r1=1.196&r2=1.197
parse_srv.c             1.62 => 1.63
        
http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_srv.c?r1=1.62&r2=1.63

Reply via email to