fix read input issue

This commit is contained in:
zhujingxuan 2021-04-17 16:59:42 +08:00
parent 449c4ba00e
commit 2b4c99ca85
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ void *ReadInputData(const char *real_input_path, int *size) {
}
if (strstr(real_input_path, ".bin") || strstr(real_input_path, ".net")) {
FILE *file;
file = fopen(real_input_path, "rb+");
file = fopen(real_input_path, "rb");
if (!file) {
printf("Can't find %s\n", real_input_path);
return NULL;