summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-11-10 01:43:04 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-11-10 01:43:04 +0000
commit8992aa0bcfb810478d7fea260eeff41848e33dd8 (patch)
tree35f791f14afd437a1c378db2579a366c9b624405
parent44468214b53f36918a469b26ee1a4269712100c1 (diff)
downloadphp-git-8992aa0bcfb810478d7fea260eeff41848e33dd8.tar.gz
Fixed possible overflow.
-rw-r--r--ext/exif/exif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index aced27d6c7..034f1fb635 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -3776,7 +3776,7 @@ PHP_FUNCTION(exif_read_data)
}
}
for (i=0; i<SECTION_COUNT; i++) {
- sprintf(tmp, ",%s,", exif_get_sectionname(i));
+ snprintf(tmp, sizeof(tmp), ",%s,", exif_get_sectionname(i));
if (strstr(sections_str, tmp)) {
sections_needed |= 1<<i;
}