Browse Source

Use correct file pointer

Armagetron 10 năm trước cách đây
mục cha
commit
3c21d6fbb7
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  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];