1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Fix comlilation on Linux.

This commit is contained in:
Sergey Lipskiy 2016-11-22 09:40:05 +07:00
parent cc63ed1764
commit 9491633b5f

View File

@ -17,8 +17,9 @@ void LOG(u16 type, const char * format, ...) {
#ifdef OS_WINDOWS
FILE *dumpFile = _wfopen(logPath, wst("a+"));
#else
char cbuf[MAX_PATH];
wcstombs(cbuf, logPath, MAX_PATH);
constexpr size_t bufSize = PLUGIN_PATH_SIZE * 6;
char cbuf[bufSize];
wcstombs(cbuf, logPath, bufSize);
FILE *dumpFile = fopen(cbuf, "a+");
#endif