this repo has no description
1
fork

Configure Feed

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

Fix a crash when using 'darling something' where something doesn't exist

+7
+7
src/startup/darling.c
··· 210 210 char** child_argv; 211 211 char *path = realpath(argv[1], NULL); 212 212 213 + if (path == NULL) 214 + { 215 + printf("'%s' is not a supported command or a file.\n", argv[1]); 216 + return 1; 217 + } 218 + 213 219 fullPath = malloc(strlen(SYSTEM_ROOT) + strlen(path) + 1); 214 220 strcpy(fullPath, SYSTEM_ROOT); 215 221 strcat(fullPath, path); 222 + free(path); 216 223 217 224 argv[1] = fullPath; 218 225 spawnShell((const char**) &argv[1]);