[fpc-devel][FPC1.1] SetString(AnsiString,...) and #0

Jonas Maebe jonas at zeus.rug.ac.be
Wed Feb 26 20:16:20 CET 2003


On vrijdag, jan 24, 2003, at 12:35 Europe/Brussels, Dimitry Sibiryakov 
wrote:

>   I think current behavior of SetString is incorrect. AnsiString may
> contain #0's so SetString shouldn't care about Buf's content.

Thanks, it's fixed.

>   BTW, what if Len=0?

No problem, setlength() will make the ansistring nil in len = 0.


Jonas




More information about the fpc-devel mailing list