mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
bug-fixin'
This commit is contained in:
parent
25a7fabed8
commit
dd9e82f5bc
24 changed files with 347 additions and 178 deletions
|
@ -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, '/');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue