Merge pull request #3087 from DavBfr/fix-png-load

Fix png image loading that needed write access
This commit is contained in:
Hardening 2016-01-27 23:02:11 +01:00
commit bb4a0c5255

View File

@ -3,6 +3,8 @@
* Image Utils
*
* Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
* Copyright 2016 Inuvika Inc.
* Copyright 2016 David PHAM-VAN <d.phamvan@inuvika.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -308,7 +310,7 @@ int winpr_image_read(wImage* image, const char* filename)
BYTE sig[8];
int status = -1;
fp = fopen(filename, "r+b");
fp = fopen(filename, "rb");
if (!fp)
{