8000 Fix allocation size · adafruit/circuitpython@b249243 · GitHub
[go: up one dir, main page]

Skip to content

Commit b249243

Browse files
committed
Fix allocation size
1 parent 90e5964 commit b249243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/vfs_fat_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ STATIC mp_obj_t file_open(fs_user_mount_t *vfs, const mp_obj_type_t *type, mp_ar
205205
o->fp.cltbl = temp_table;
206206
f_lseek(&o->fp, CREATE_LINKMAP);
207207
DWORD size = (temp_table[0] + 1) * 2;
208-
o->fp.cltbl = m_malloc_maybe(size, false);
208+
o->fp.cltbl = m_malloc_maybe(size * sizeof(DWORD), false);
209209
if (o->fp.cltbl != NULL) {
210210
o->fp.cltbl[0] = size;
211211
res = f_lseek(&o->fp, CREATE_LINKMAP);

0 commit comments

Comments
 (0)
0