1
0
Fork 0
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:
Perttu Ahola 2011-02-08 01:12:55 +02:00
parent 25a7fabed8
commit dd9e82f5bc
24 changed files with 347 additions and 178 deletions

View file

@ -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, '/');