Explorar o código

Use correct file pointer

Armagetron %!s(int64=9) %!d(string=hai) anos
pai
achega
3c21d6fbb7
Modificáronse 1 ficheiros con 1 adicións e 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];