com php-src: fix iptcembed(): ext/standard/iptc.c
| From: | Anatol Belski | Date: | Sun, 31 Aug 2014 12:02:28 +0000 |
| Subject: | com php-src: fix iptcembed(): ext/standard/iptc.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81316@lists.php.net to get a copy of this message | ||
Commit: 312181bc13d99ce089aeb16542db9f6c8a11f108
Author: Anatol Belski <ab@php.net> Sat, 30 Aug 2014 00:24:41 +0200
Parents: c59292570cd6dc8ba83de305526becd70e3db992
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=312181bc13d99ce089aeb16542db9f6c8a11f108
Log:
fix iptcembed()
Changed paths:
M ext/standard/iptc.c
Diff:
diff --git a/ext/standard/iptc.c b/ext/standard/iptc.c
index e5e9f04..e815c6b 100644
--- a/ext/standard/iptc.c
+++ b/ext/standard/iptc.c
@@ -201,7 +201,7 @@ PHP_FUNCTION(iptcembed)
}
if (spool < 2) {
- fstat(fileno(fp), &sb);
+ zend_fstat(fileno(fp), &sb);
poi = spoolbuf = safe_emalloc(1, iptcdata_len + sizeof(psheader) + sb.st_size + 1024, 1);
memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1);