Skip to content
Permalink
Browse files

Fix build on OS X (Thanks neoascetic)

  • Loading branch information
kwolekr committed Apr 20, 2015
1 parent 3d4244c commit a443a13a9d77d3826947a55dd3bdc684d7bb7ed8
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/porting.cpp
@@ -388,7 +388,8 @@ bool getCurrentExecPath(char *buf, size_t len)

bool getCurrentExecPath(char *buf, size_t len)
{
if (_NSGetExecutablePath(buf, &len) == -1)
uint32_t lenb = (uint32_t)len;
if (_NSGetExecutablePath(buf, &lenb) == -1)
return false;

return true;

0 comments on commit a443a13

Please sign in to comment.
You can’t perform that action at this time.