Clear dir_t size, not pointer size

This commit is contained in:
Scott Lahteine 2016-10-25 22:59:40 -05:00 committed by GitHub
parent 3fcf915808
commit 7ad33422e3

View file

@ -674,7 +674,7 @@ bool SdBaseFile::open(SdBaseFile* dirFile,
index = 0;
}
// initialize as empty file
ZERO(p);
memset(p, 0, sizeof(*p));
memcpy(p->name, dname, 11);
// set timestamps