Use strerror over strerror_r which is not consistent

This commit is contained in:
baldurk
2023-04-28 14:09:40 +01:00
parent 8f23e3c8f2
commit eb3fa8dddd
+1 -7
View File
@@ -400,13 +400,7 @@ FILE *fopen(const rdcstr &filename, FileMode mode)
rdcstr ErrorString()
{
int err = errno;
char buf[256] = {0};
strerror_r(err, buf, 256);
return buf;
return strerror(errno);
}
size_t fread(void *buf, size_t elementSize, size_t count, FILE *f)