diff --git a/apps/mpeg.c b/apps/mpeg.c index 45b3619336..dcccb98d17 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c @@ -2849,7 +2849,7 @@ void audio_init(void) IF_PRIO(, PRIORITY_SYSTEM) IF_COP(, CPU)); - memset(trackdata, sizeof(trackdata), 0); + memset(trackdata, 0, sizeof(trackdata)); #if (CONFIG_CODEC == MAS3587F) && !defined(SIMULATOR) if (HW_MASK & PR_ACTIVE_HIGH) diff --git a/firmware/common/dir_uncached.c b/firmware/common/dir_uncached.c index 1e2c7bb7cb..c6af145930 100644 --- a/firmware/common/dir_uncached.c +++ b/firmware/common/dir_uncached.c @@ -268,7 +268,7 @@ int mkdir_uncached(const char *name) } } - memset(&newdir, sizeof(struct fat_dir), 0); + memset(&newdir, 0, sizeof(struct fat_dir)); rc = fat_create_dir(basename, &newdir, &(dir->fatdir)); closedir_uncached(dir);