Browse Source

Clear dir_t size, not pointer size

pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
7ad33422e3
  1. 2
      Marlin/SdBaseFile.cpp

2
Marlin/SdBaseFile.cpp

@ -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