FS#22176 - leafpad 0.8.18 produces corrupted files

Attached to Project: Arch Linux
Opened by badboy (badboy) - Tuesday, 21 December 2010, 17:16 GMT
Last edited by Ionut Biru (wonder) - Friday, 24 December 2010, 13:02 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The latest version of leafpad (0.8.18) produces corrupted files when saving.
This is due to a small typo in the code. Upstream is informed, I hope it gets fixed ASAP.

The fix is as simple as:

- if (fwrite(str, 1, wbytes, fp) != wbytes) {
+ if (fwrite(cstr, 1, wbytes, fp) != wbytes) {

I added a full "diff -u" created patch file.

Additional info:
* leafpad 0.8.18-1 from extra
* cstr.patch for fix


Steps to reproduce:

Open leafpad, write something, save to file, view it with "cat" or another editor → corrupted
This task depends upon

Closed by  Ionut Biru (wonder)
Friday, 24 December 2010, 13:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.8.18.1-1
Comment by badboy (badboy) - Tuesday, 21 December 2010, 17:19 GMT
Should be "Category: Upstream Bugs". Is there no damn "edit" button around?
Comment by Ionut Biru (wonder) - Tuesday, 21 December 2010, 17:21 GMT
thanks. i got a message on my email about that too and i redirected upstream
Comment by Ionut Biru (wonder) - Tuesday, 21 December 2010, 17:30 GMT
our package should be fixed in 0.8.18-2. i would let it open couple of days to avoid duplicate bugs

Loading...