Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bugs
  • Category Plugins
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by desowin - 2007-01-21

FS#6559 - text_editor doesn't make files smaller

How to reproduce:

1.Open text_editor
2.Type AAAA
3.Save file
4.Open it, and delete 3 ‘A’, then type ‘B’ twice
5.Save file
6.file will have “ABBA” text instead of expected “ABB”

It hapens with bigger files too, adding characters to file makes file size bigger

I’m using iPod mini 2g

Closed by  linuxstb
2007-01-27 10:46
Reason for closing:  Fixed
Additional comments about closing:  

Fix committed to SVN - revision 12122, thanks for the bug report.

yup, I’ve been seeing this on H340.

The fix for this seems to be to just add O_TRUNC to the rb→open() call in line 178 of text_editor.c

Can anyone confirm?

I confirm this, it’s fixed then

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing