Explorar el Código

Merge pull request #489 from Armagetron/master

Use correct file pointer
Lee Thomason hace 9 años
padre
commit
15ad07170d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      xmltest.cpp

+ 1 - 1
xmltest.cpp

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