StripCR matching

This commit is contained in:
Dethrace Labs 2025-09-08 10:09:52 +12:00 committed by Dethrace Engineering Department
parent b932b66fa7
commit 0bfc9c409c
1 changed files with 7 additions and 7 deletions

View File

@ -1389,13 +1389,13 @@ br_material* DRMaterialClone(br_material* pMaterial) {
void StripCR(char* s) {
char* pos;
pos = s;
while (*pos != '\0') {
if (*pos == '\r' || *pos == '\n') {
*pos = '\0';
break;
}
pos++;
pos = strchr(s, '\n');
if (pos) {
*pos = 0;
}
pos = strchr(s, '\r');
if (pos) {
*pos = 0;
}
}