[IE Samples] Fixed rights for file with image (#10924)

This commit is contained in:
Maxim Gordeev 2022-03-12 01:51:34 +03:00 committed by GitHub
parent 45d34e7885
commit 4be227f5a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ void print_classify_res(struct classify_res* cls, size_t n, const char* img_path
* doesn't equal to size param
*/
size_t read_image_from_file(const char* img_path, unsigned char* img_data, size_t size) {
FILE* fp = fopen(img_path, "rb+");
FILE* fp = fopen(img_path, "rb");
size_t read_size = 0;
if (fp) {