comparison src/xs_length.c @ 417:0cfb306f7af8

Bugfix
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 10 Sep 2006 17:44:00 +0000
parents 7f694e5a1493
children 226627246616
comparison
equal deleted inserted replaced
416:eff5ea454bae 417:0cfb306f7af8
207 207
208 /* Check if it is datafield */ 208 /* Check if it is datafield */
209 if (isxdigit(inLine[linePos])) { 209 if (isxdigit(inLine[linePos])) {
210 /* Check the length of the hash */ 210 /* Check the length of the hash */
211 gint hashLen; 211 gint hashLen;
212 for (hashLen = 0; isxdigit(inLine[linePos]); hashLen++, linePos++); 212 for (hashLen = 0; !inLine[linePos] && isxdigit(inLine[linePos]); hashLen++, linePos++);
213 213
214 if (hashLen != XS_MD5HASH_LENGTH_CH) { 214 if (hashLen != XS_MD5HASH_LENGTH_CH) {
215 xs_error("Invalid MD5-hash in SongLengthDB file '%s' line #%d!\n", 215 xs_error("Invalid MD5-hash in SongLengthDB file '%s' line #%d!\n",
216 dbFilename, lineNum); 216 dbFilename, lineNum);
217 } else { 217 } else {