mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Heh heh... look at that... what was that ampersand doing there?
This commit is contained in:
parent
752b75b733
commit
5cbb505e00
@ -574,8 +574,9 @@ read_args() {
|
|||||||
|
|
||||||
size_t bufsize = 4096;
|
size_t bufsize = 4096;
|
||||||
char buffer[4096];
|
char buffer[4096];
|
||||||
int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_ARGS, getpid()};
|
int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_ARGS, 0};
|
||||||
if (sysctl(mib, 4, (void*) &buffer, &bufsize, NULL, 0) == -1) {
|
mib[3] = getpid();
|
||||||
|
if (sysctl(mib, 4, (void*) buffer, &bufsize, NULL, 0) == -1) {
|
||||||
perror("sysctl");
|
perror("sysctl");
|
||||||
} else {
|
} else {
|
||||||
if (_binary_name.empty()) {
|
if (_binary_name.empty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user