// Read Command line\r
sCommandStr = ReadCommandLine( &length );\r
\r
+ if(!sCommandStr) {\r
+ write(_stdout, 25, "PANIC: Out of heap space\n");\r
+ return -1;\r
+ }\r
+ \r
// Check if the command should be cached\r
if(gasCommandHistory == NULL || strcmp(sCommandStr, gasCommandHistory[giLastCommand]) != 0)\r
{\r
int i = 1;\r
char *buf = malloc( strlen(str) + 1 );\r
\r
+ if(buf == NULL) {\r
+ dest[0] = NULL;\r
+ Print("Parse_Args: Out of heap space!\n");\r
+ return ;\r
+ }\r
+ \r
strcpy(buf, str);\r
dest[0] = buf;\r
\r