mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -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)");
|
||||
return NULL;
|
||||
}
|
||||
buffer[pathlen] = '\0';
|
||||
runtime = fopen(buffer, "rb");
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user