much annoyance over string limit lengths

Luke Kenneth Casson Leighton lkcl at regent.push.net
Sun Apr 12 14:26:39 GMT 1998


On Sun, 12 Apr 1998, Andrew Tridgell wrote:

> Luke wrote:
> > this is not a good solution.  what really needs to happen is that strings
> > should be dynamically allocated.
> 
> yes, I'd like to eventually get rid of pstring and fstring and start
> using dynamic allocation. It isn't quite as easy as you think though.

ah, this is static-sized arrays of UNISTR2 structures in the dce/rpc code
that i am referring to:
 
> One of the main reasons for using the static (and rather large)
> strings is to support all those % macros.

... and i have UNISTR2 = uint16[384] because i don't know whether there's
going to be some silly length strings.

luke



More information about the samba-technical mailing list