Remove extra newlines when recovering from malformed MSDs.

This commit is contained in:
Glenn Maynard
2003-10-10 04:32:50 +00:00
parent abc93ed1d4
commit b014c72bd2
+4
View File
@@ -95,6 +95,10 @@ void MsdFile::ReadBuf( char *buf, int len )
continue;
}
/* Skip newlines and whitespace before adding the value. */
while( j >= 1 && strchr("\r\n", buf[j-1]) )
--j;
AddParam(buf+value_start, j - value_start);
ReadingValue=false;
}