summaryrefslogtreecommitdiff
path: root/apps/metadata.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata.c')
-rw-r--r--apps/metadata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index b3a4deb385..f227776c0a 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -458,7 +458,8 @@ void adjust_mp3entry(struct mp3entry *entry, void *dest, const void *orig)
458 entry->artist += offset; 458 entry->artist += offset;
459 if (entry->album) 459 if (entry->album)
460 entry->album += offset; 460 entry->album += offset;
461 if (entry->genre_string && !id3_is_genre_string(entry->genre_string)) 461 if (entry->genre_string > (char*)orig
462 && entry->genre_string < (char*)orig + sizeof(struct mp3entry))
462 /* Don't adjust that if it points to an entry of the "genres" array */ 463 /* Don't adjust that if it points to an entry of the "genres" array */
463 entry->genre_string += offset; 464 entry->genre_string += offset;
464 if (entry->track_string) 465 if (entry->track_string)