Hi, Attached is the diff for my mp3check NMU. I have tested that Tobias' patch works fine, and i can not reproduce the problem of the bug #227977.
diff -Nrua mp3check-0.8.0.orig/debian/changelog mp3check-0.8.0/debian/changelog --- mp3check-0.8.0.orig/debian/changelog 2006-11-28 15:38:57.000000000 +0100 +++ mp3check-0.8.0/debian/changelog 2006-11-28 15:38:11.000000000 +0100 @@ -1,3 +1,14 @@ +mp3check (0.8.0-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Fixed protection of tags id3. Patch by Tobias Frost <[EMAIL PROTECTED]>. + (Closes: #399047) + * Built with gcc4, updates from libstdc++5 to libstdc++6 (Closes: #395451). + * Updated compat to 5. + * Bumped standards-version to 3.7.2, no changes required. + + -- Ana Beatriz Guerrero Lopez <[EMAIL PROTECTED]> Tue, 28 Nov 2006 14:57:12 +0100 + mp3check (0.8.0-4) unstable; urgency=low * Apply patch to allow mp3check to compile with gcc 3.4. (Closes: #260651) diff -Nrua mp3check-0.8.0.orig/debian/control mp3check-0.8.0/debian/control --- mp3check-0.8.0.orig/debian/control 2006-11-28 15:38:57.000000000 +0100 +++ mp3check-0.8.0/debian/control 2006-11-28 15:10:02.000000000 +0100 @@ -2,8 +2,8 @@ Section: sound Priority: optional Maintainer: James Morrison <[EMAIL PROTECTED]> -Build-Depends: debhelper (>= 3.0) -Standards-Version: 3.6.1.1 +Build-Depends: debhelper (>= 5.0) +Standards-Version: 3.7.2 Package: mp3check Architecture: any diff -Nrua mp3check-0.8.0.orig/debian/rules mp3check-0.8.0/debian/rules --- mp3check-0.8.0.orig/debian/rules 2006-11-28 15:38:57.000000000 +0100 +++ mp3check-0.8.0/debian/rules 2006-11-28 15:08:18.000000000 +0100 @@ -6,7 +6,7 @@ export DH_VERBOSE=1 # This is the debhelper compatability version to use. -export DH_COMPAT=3 +export DH_COMPAT=5 configure: configure-stamp configure-stamp: diff -Nrua mp3check-0.8.0.orig/mp3check.cc mp3check-0.8.0/mp3check.cc --- mp3check-0.8.0.orig/mp3check.cc 2006-11-28 15:38:57.000000000 +0100 +++ mp3check-0.8.0/mp3check.cc 2006-11-28 15:06:17.000000000 +0100 @@ -1133,7 +1133,7 @@ // rewrite tag if(have_a_tag) { - if(tag->restore((unsigned char*)p - (128 - rest))) { + if(tag->restore((unsigned char*)p )) { fmes(name, "%scut-junk-end: tag successfully restored%s\n", cok, cnor); } else { fmes(name, "%scut-junk-end: unable to restore tag, sorry%s\n", cok, cnor);