mirror of https://github.com/AxioDL/tinyxml2.git
Use correct file pointer
This commit is contained in:
parent
f6106bec9a
commit
3c21d6fbb7
|
@ -1618,7 +1618,7 @@ int main( int argc, const char ** argv )
|
|||
|
||||
FILE* perfFP = fopen("resources/dream.xml", "r");
|
||||
fseek(perfFP, 0, SEEK_END);
|
||||
long size = ftell(fp);
|
||||
long size = ftell(perfFP);
|
||||
fseek(perfFP, 0, SEEK_SET);
|
||||
|
||||
char* mem = new char[size + 1];
|
||||
|
|
Loading…
Reference in New Issue