this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix sysctlbyname()

+3 -1
+3 -1
src/kernel/emulation/linux/misc/sysctl.c
··· 96 96 const struct known_sysctl* current = &sysctls_root; 97 97 char* saveptr; 98 98 const char* token; 99 + char name_copy[128]; 99 100 // __simple_printf("sysctlbyname: %s\n", name); 100 101 101 102 // Used by launchd, assumed to succeed 102 103 if (strcmp(name, "vfs.generic.noremotehang") == 0) 103 104 return 0; 104 105 105 - token = strtok_r((char*) _new, ".", &saveptr); 106 + strlcpy(name_copy, name, sizeof(name_copy)); 107 + token = strtok_r(name_copy, ".", &saveptr); 106 108 107 109 while (token != NULL) 108 110 {