diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-06-22 20:27:46 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-06-22 20:27:46 +0000 |
commit | 869a90f01546d4618781836f7427f3452896df5f (patch) | |
tree | d64022087c01c1265766e50259e8b37b89a28bc5 /ext/standard/iptc.c | |
parent | ef8137320189fd1fe8a6f7c4eb9a2bd9b0a7b73b (diff) | |
download | php-git-869a90f01546d4618781836f7427f3452896df5f.tar.gz |
Fixed possible buffer overflow.
Diffstat (limited to 'ext/standard/iptc.c')
-rw-r--r-- | ext/standard/iptc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/iptc.c b/ext/standard/iptc.c index ac1c6edfa0..bf7f63ddfc 100644 --- a/ext/standard/iptc.c +++ b/ext/standard/iptc.c @@ -351,7 +351,7 @@ PHP_FUNCTION(iptcparse) inx += 2; } - sprintf(key, "%d#%03d", (unsigned int) dataset, (unsigned int) recnum); + snprintf(key, sizeof(key), "%d#%03d", (unsigned int) dataset, (unsigned int) recnum); if ((len > length) || (inx + len) > length) break; |