On Sat, Nov 25, 2006 at 08:42:47PM +0100, Enrico Forestieri wrote:
> Hmmm, if my info are correct I think I'm doing right:
> 
>  void string::resize(size_type n, char c)
>     The string stored in the string object is resized to n characters.
>     The second argument is optional, in which case the value c = 0 is
>     used. If provided and the string is enlarged, the extra characters
>     are initialized to c.
> 
> Hence, I am not reading uninitialized memory and f.get stops reading
> when encountering the first 0.

Ah, ok. I wasn't aware of the c=0 default value.

> I am going to commit the attached patch.

I like it better ;-)

Andre'

Reply via email to