diff options
Diffstat (limited to 'src/sys.c')
| -rw-r--r-- | src/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ #include "sys.h" #include "std.h" -char* get_self_path() { +static char* get_self_path() { char* buf = calloc(PATH_MAX, sizeof(char)); ssize_t len = readlink("/proc/self/exe", buf, PATH_MAX - 1); if (len == -1 || len == PATH_MAX - 1) { |
