strip \r \n from line
This commit is contained in:
@@ -148,7 +148,9 @@ struct b3BulletDefaultFileIO : public CommonFileIOInterface
|
|||||||
FILE* f = m_fileHandles[fileHandle];
|
FILE* f = m_fileHandles[fileHandle];
|
||||||
if (f)
|
if (f)
|
||||||
{
|
{
|
||||||
return ::fgets(destBuffer, numBytes, m_fileHandles[fileHandle]);
|
char* txt = ::fgets(destBuffer, numBytes, m_fileHandles[fileHandle]);
|
||||||
|
destBuffer[strcspn(destBuffer, "\r\n")] = 0;
|
||||||
|
return txt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user