summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/CREDITS1
-rw-r--r--firmware/id3.c8
2 files changed, 7 insertions, 2 deletions
diff --git a/docs/CREDITS b/docs/CREDITS
index 5d3c845cf3..6e04addf01 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -121,3 +121,4 @@ Ray Lambert
121Dave Wiard 121Dave Wiard
122Pieter Bos 122Pieter Bos
123Konstantin Isakov 123Konstantin Isakov
124Bryan Vandyke
diff --git a/firmware/id3.c b/firmware/id3.c
index 3a8296a8ae..6a13de4e29 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -708,8 +708,12 @@ static void setid3v2title(int fd, struct mp3entry *entry)
708 708
709 unicode_munge( ptag, &bytesread ); 709 unicode_munge( ptag, &bytesread );
710 tag = *ptag; 710 tag = *ptag;
711 tag[bytesread++] = 0; 711 /* remove trailing spaces */
712 bufferpos += bytesread; 712 while ( bytesread > 0 && isspace(tag[bytesread-1]))
713 bytesread--;
714 tag[bytesread] = 0;
715 bufferpos += bytesread + 1;
716
713 if( tr->ppFunc ) 717 if( tr->ppFunc )
714 bufferpos = tr->ppFunc(entry, tag, bufferpos); 718 bufferpos = tr->ppFunc(entry, tag, bufferpos);
715 break; 719 break;