Fix trimming line ending in .lst files

This commit is contained in:
Alexander Batalov 2022-10-26 10:17:39 +03:00
parent 223930c464
commit 1bbd586cbb
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ int _proto_list_str(int pid, char* proto_path)
*pch = '\0';
}
pch = strchr(string, '\n');
pch = strpbrk(string, "\r\n");
if (pch != NULL) {
*pch = '\0';
}