icon.library: trim garbage that can be present at end of file
commit7a8e902262ff8ca0297dfd7ed624ad280fbc54d8
authordeadwood <deadwood@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 13 Jul 2013 13:29:36 +0000 (13 13:29 +0000)
committerdeadwood <deadwood@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 13 Jul 2013 13:29:36 +0000 (13 13:29 +0000)
tree112a98a3ccff1bfa6db36f4475db2a393726057c
parent68be8b9a5cbe510f5357ce94a5eb913de8f21a88
icon.library: trim garbage that can be present at end of file

When (un)snapshoting, icon is saved with ICONPUTA_OnlyUpdatePosition. This
causes the file to be opened in MODE_OLDFILE. Since X/Y coordinates are
not saved when they are equal NO_ICON_POSITION, the data is smaller and
there is garbage left at the end of the file. Not trimming the file was
causing the icon to be damaged after unsnapshoting.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@47666 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
workbench/libs/icon/diskobjPNGio.c