Commit e4188c80 authored by Milo Yip's avatar Milo Yip

Fixes a warning in release.

parent 1e99f0b5
......@@ -46,7 +46,7 @@ inline Ch* StrDup(const Ch* str) {
}
inline void TempFilename(char *filename) {
tmpnam(filename);
filename = tmpnam(filename);
// For Visual Studio, tmpnam() adds a backslash in front. Remove it.
if (filename[0] == '\\')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment