diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-04-12 21:17:47 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-04-12 21:17:47 +0000 |
| commit | 1326f666a67da4bc09727ef4b7b55d392df233da (patch) | |
| tree | 3081f1726d71bc0a2e04b211d7a979aecbb81f60 /tools | |
| parent | e738e33e94e82065528ea9b9dd147a43172925ee (diff) | |
| download | rockbox-1326f666a67da4bc09727ef4b7b55d392df233da.zip rockbox-1326f666a67da4bc09727ef4b7b55d392df233da.tar.gz rockbox-1326f666a67da4bc09727ef4b7b55d392df233da.tar.bz2 rockbox-1326f666a67da4bc09727ef4b7b55d392df233da.tar.xz | |
Now handles files with odd length
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3543 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/scramble.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/scramble.c b/tools/scramble.c index a5c8cae..716b73b 100644 --- a/tools/scramble.c +++ b/tools/scramble.c @@ -50,6 +50,8 @@ int main (int argc, char** argv) } fseek(file,0,SEEK_END); length = ftell(file); + length = (length + 3) & ~3; /* Round up to nearest 4 byte boundary */ + fseek(file,0,SEEK_SET); inbuf = malloc(length); outbuf = malloc(length); |