git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15256 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2021-12-26 10:50:11 +00:00
parent 3df99a2067
commit f18696d0ce
1 changed files with 1 additions and 1 deletions

View File

@ -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;