Re: much annoyance over string limit lengths

Luke Kenneth Casson Leighton (lkcl@regent.push.net)
Sun, 12 Apr 1998 14:26:39 +0000 (GMT)

Date:	Sun, 12 Apr 1998 14:26:39 +0000 (GMT)
From:	Luke Kenneth Casson Leighton <lkcl@regent.push.net>
To:	Samba Technical List <samba-technical@samba.anu.edu.au>
Subject: Re: much annoyance over string limit lengths
In-Reply-To: <19980412013020Z12631014-456+2536@samba.anu.edu.au>

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