LIB: Revert back the changes to mfile.cpp.

It introduced null characters into the state file stream which we do not want.
This commit is contained in:
Rom Walton 2016-02-16 10:04:24 -05:00
parent 2997944822
commit a44f7ad49d
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ int MFILE::vprintf(const char* format, va_list ap) {
);
exit(1);
}
strlcpy(buf+len, buf2, n);
strncpy(buf+len, buf2, n);
len += n;
buf[len] = 0;
return k;
@ -143,7 +143,7 @@ int MFILE::puts(const char* p) {
);
exit(1);
}
strlcpy(buf+len, p, n);
strncpy(buf+len, p, n);
len += n;
buf[len] = 0;
return n;