mirror of https://github.com/rusefi/ChibiOS.git
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15256 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
3df99a2067
commit
f18696d0ce
|
@ -366,7 +366,7 @@ static void cmd_ls(BaseSequentialStream *chp, int argc, char *argv[]) {
|
|||
msg_t res;
|
||||
vfs_directory_node_c *dirp;
|
||||
|
||||
nip = (vfs_node_info_t *)chHeapAlloc(NULL, 2048);
|
||||
nip = (vfs_node_info_t *)chHeapAlloc(NULL, sizeof (vfs_node_info_t));
|
||||
if (nip == NULL) {
|
||||
chprintf(chp, "Out of memory" SHELL_NEWLINE_STR);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue