1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00

Fixed possible overflow.

This commit is contained in:
Ilia Alshanetsky
2004-11-10 01:43:04 +00:00
parent 44468214b5
commit 8992aa0bcf
+1 -1
View File
@@ -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;
}