Clear dir_t size, not pointer size
This commit is contained in:
parent
3fcf915808
commit
7ad33422e3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue