- fix Linux build

This commit is contained in:
Dmytro Bogovych 2019-01-30 12:20:13 +03:00
parent 3d22220c7a
commit e83f717076
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ std::string FileHelper::getCurrentDir()
#endif #endif
#if defined(TARGET_LINUX) || defined(TARGET_OSX) #if defined(TARGET_LINUX) || defined(TARGET_OSX)
char buffer[512]; char buf[512];
if (getcwd(buf, sizeof buf) != nullptr) if (getcwd(buf, sizeof buf) != nullptr)
return buf; return buf;
else else