Clear dir_t size, not pointer size

2.0.x
Scott Lahteine 8 years ago committed by GitHub
parent 3fcf915808
commit 7ad33422e3

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

Loading…
Cancel
Save