nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] File size problem in the status bar


From: Benno Schulenberg
Subject: Re: [Nano-devel] File size problem in the status bar
Date: Thu, 16 Aug 2018 19:49:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Op 13-08-18 om 04:18 schreef Liu Hao:
> 在 2018/7/21 14:45, Benno Schulenberg 写道:
>> Op 20-07-18 om 16:48 schreef Liu Hao:
>>> 2) I intermittently get garbage file size values on the status bar. I don't 
>>> know
>>> how to reproduce this. Eventually I had Valgrind attached to nano and it 
>>> caught
>>> use of an uninitialized value in winio.c on the following line:
>>>
>>> ```
>>> charpct = (openfile->totsize == 0) ? 0 : 100 * sum / openfile->totsize;
>>> ```
>>> , where `openfile->totsize` seemed uninitialized, as `sum` looked normal.
> 
> It seems that this has been addressed and fixed by fd65f744286 (as it seems
> impossible otherwise).

Yes, I suspected that the change might also fix the issue that you were seeing,
but it would mean that you are using sometimes a redo during your editing.  You
didn't mention that during your report -- if I remember well.

Anyway, I'm glad that it seems to be fixed now.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]