# HG changeset patch # User Matti Hamalainen # Date 1193200338 -10800 # Node ID c349bd73af7120ee925a0f0a1ba0100ecbbed8dc # Parent 1be75b01ded36892a14b4e013121ab08d6bd306b Fixed a bug in cleaning up of module's sample names/title. (Sometimes caused the last character to be deleted.) diff -r 1be75b01ded3 -r c349bd73af71 src/modplug/sndfile.cxx --- a/src/modplug/sndfile.cxx Tue Oct 23 09:06:07 2007 +0300 +++ b/src/modplug/sndfile.cxx Wed Oct 24 07:32:18 2007 +0300 @@ -174,12 +174,7 @@ LPSTR p = m_szNames[i]; int j = 31; p[j] = 0; - while ((j>=0) && (p[j]<=' ')) p[j--] = 0; - while (j>=0) - { - if (((BYTE)p[j]) < ' ') p[j] = ' '; - j--; - } + while ((j >= 0) && (p[j] == ' ')) p[j--] = 0; } // Adjust channels for (i=0; i