diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-03 23:17:42 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-03 23:17:42 +0000 |
| commit | e2186479d56762d097b943696423ad8588ca7f92 (patch) | |
| tree | 833fb9909a1842e1eb216a695d7bc507855be4e5 /apps/plugins/mikmod/load_gt2.c | |
| parent | 7887e596a99fcaf2198d624bfedf5e2ad97a49cd (diff) | |
| download | rockbox-e2186479d56762d097b943696423ad8588ca7f92.zip rockbox-e2186479d56762d097b943696423ad8588ca7f92.tar.gz rockbox-e2186479d56762d097b943696423ad8588ca7f92.tar.bz2 rockbox-e2186479d56762d097b943696423ad8588ca7f92.tar.xz | |
FS#12259: Remove '-w' compiler option for MikMod. Resolve all yet unreported compiler warnings and fix a bug in load_gt2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30424 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mikmod/load_gt2.c')
| -rw-r--r-- | apps/plugins/mikmod/load_gt2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/mikmod/load_gt2.c b/apps/plugins/mikmod/load_gt2.c index 996de0e..9baef5c 100644 --- a/apps/plugins/mikmod/load_gt2.c +++ b/apps/plugins/mikmod/load_gt2.c @@ -217,7 +217,7 @@ GT_CHUNK *loadChunk(void) _mm_read_M_ULONGS(&new_chunk->gt2.chunk_size, 1, modreader); new_chunk->gt2.module_name[32] = 0; _mm_read_UBYTES(&new_chunk->gt2.module_name, 32, modreader); - new_chunk->gt2.module_name[160] = 0; + new_chunk->gt2.comments_author[160] = 0; _mm_read_UBYTES(&new_chunk->gt2.comments_author, 160, modreader); _mm_read_UBYTES(&new_chunk->gt2.date_day, 1, modreader); _mm_read_UBYTES(&new_chunk->gt2.date_month, 1, modreader); @@ -332,6 +332,7 @@ int GT2_Test(void) int GT2_Load(int curious) { GT_CHUNK *tmp; + (void)curious; _mm_fseek(modreader, 0, SEEK_SET); while ( (tmp = loadChunk() )) |