Skip to content
Snippets Groups Projects
Commit 106b31fd authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

No commit message

No commit message
parent 8128d124
No related branches found
No related tags found
No related merge requests found
...@@ -419,7 +419,7 @@ std::string GetExecutableFileName() ...@@ -419,7 +419,7 @@ std::string GetExecutableFileName()
#elif defined(__linux__) #elif defined(__linux__)
char path[4096]; char path[4096];
int n = readlink("/proc/self/exe", path, sizeof(path)); int n = readlink("/proc/self/exe", path, sizeof(path));
if(n > 0 && n < sizeof(path)){ if(n > 0 && n < (int)sizeof(path)){
path[n] = '\0'; path[n] = '\0';
name = std::string(path); name = std::string(path);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment