mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
deploy-ng: NULL terminate readlink() result in deploy-stub
This commit is contained in:
parent
53dea28f53
commit
495ce50d84
@ -545,6 +545,7 @@ static void *map_blob(off_t offset, size_t size) {
|
|||||||
perror("readlink(/proc/self/exe)");
|
perror("readlink(/proc/self/exe)");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
buffer[pathlen] = '\0';
|
||||||
runtime = fopen(buffer, "rb");
|
runtime = fopen(buffer, "rb");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user