bug in HEAD: init_unistr2_from_unistr

Jeremy Allison jeremy at valinux.com
Sat Aug 5 18:37:18 GMT 2000

On Sat, Aug 05, 2000 at 06:20:25PM +0200, Jean Francois Micouleau wrote:
> the string copy can be a simple:
> memcpy( to->buffer, from->buffer, to->uni_str_len*sizeof(uint16) );

Be careful of this (I'm at home at the moment so can't easily
check stuff). It looks like you may be believing the client
when it gives you a length.

That would be a mistake :-).


Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.

More information about the samba-technical mailing list