forked from KolibriOS/kolibrios
shell:
- fixed definitions - stack locals changed to heap variables (reduced app size) git-svn-id: svn://kolibrios.org@9808 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
int cmd_touch(char file[])
|
||||
{
|
||||
kol_struct70 k70;
|
||||
char temp[FILENAME_MAX];
|
||||
char* temp = (char*) malloc(FILENAME_MAX);
|
||||
unsigned result;
|
||||
|
||||
if (NULL == file || strlen(file) == 0) {
|
||||
@@ -43,6 +43,8 @@ int cmd_touch(char file[])
|
||||
|
||||
result = kol_file_70(&k70);
|
||||
|
||||
free(temp);
|
||||
|
||||
if (0 == result)
|
||||
return TRUE;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user