mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
bug-fixin'
This commit is contained in:
@@ -81,8 +81,9 @@ void initializePaths()
|
||||
#include <unistd.h>
|
||||
|
||||
char buf[BUFSIZ];
|
||||
memset(buf, 0, BUFSIZ);
|
||||
// Get path to executable
|
||||
readlink("/proc/self/exe", buf, BUFSIZ);
|
||||
readlink("/proc/self/exe", buf, BUFSIZ-1);
|
||||
|
||||
pathRemoveFile(buf, '/');
|
||||
|
||||
@@ -144,8 +145,9 @@ void initializePaths()
|
||||
#include <unistd.h>
|
||||
|
||||
char buf[BUFSIZ];
|
||||
memset(buf, 0, BUFSIZ);
|
||||
// Get path to executable
|
||||
readlink("/proc/self/exe", buf, BUFSIZ);
|
||||
readlink("/proc/self/exe", buf, BUFSIZ-1);
|
||||
|
||||
pathRemoveFile(buf, '/');
|
||||
|
||||
|
Reference in New Issue
Block a user