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
Opened by badboy (badboy) - Tuesday, 21 December 2010, 17:16 GMT
Last edited by Ionut Biru (wonder) - Friday, 24 December 2010, 13:02 GMT
|
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
Friday, 24 December 2010, 13:02 GMT
Reason for closing: Fixed
Additional comments about closing: 0.8.18.1-1

Should be "Category: Upstream Bugs". Is there no damn "edit"
button around?

thanks. i got a message on my email about that too and i
redirected upstream

our package should be fixed in 0.8.18-2. i would let it open
couple of days to avoid duplicate bugs