1 parent
e29c0661cc
commit
d0bbfdbfb8
179 files changed
+1260
-1101
No files matched your search
@@ -64,9 +64,9 @@ static char *GetAppName()
|
||||
int linksize;
|
||||
|
||||
#if defined(__LINUX__)
|
||||
SDL_snprintf(procfile, sizeof(procfile), "/proc/%d/exe", getpid());
|
||||
(void)SDL_snprintf(procfile, sizeof procfile, "/proc/%d/exe", getpid());
|
||||
#elif defined(__FREEBSD__)
|
||||
SDL_snprintf(procfile, sizeof(procfile), "/proc/%d/file", getpid());
|
||||
(void)SDL_snprintf(procfile, sizeof procfile, "/proc/%d/file", getpid());
|
||||
#endif
|
||||
linksize = readlink(procfile, linkfile, sizeof(linkfile) - 1);
|
||||
if (linksize > 0) {
|
||||
|
||||
Reference in new issue
Block a user