summaryrefslogtreecommitdiff
path: root/ext/exif
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-02-27 03:04:40 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-02-27 03:04:40 +0000
commitcc04404b28d10481f63be986fe815de1fe31088b (patch)
treec619ec6b6b47c2f15e7c67a9fa8249de615f4d40 /ext/exif
parent1d08a8d157fe76c98abec7664f9eeddf654ff546 (diff)
downloadphp-git-cc04404b28d10481f63be986fe815de1fe31088b.tar.gz
snprintf() -> slprintf()
# Part 1
Diffstat (limited to 'ext/exif')
-rw-r--r--ext/exif/exif.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index fee4a41fe7..c9c46c6d4b 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -1032,22 +1032,22 @@ static unsigned char* exif_char_dump(unsigned char * addr, int len, int offset)
static unsigned char tmp[20];
int c, i, p=0, n = 5+31;
- p += snprintf(buf+p, sizeof(buf)-p, "\nDump Len: %08X (%d)", len, len);
+ p += slprintf(buf+p, sizeof(buf)-p, "\nDump Len: %08X (%d)", len, len);
if (len) {
for(i=0; i<len+15 && p+n<=sizeof(buf); i++) {
if (i%16==0) {
- p += snprintf(buf+p, sizeof(buf)-p, "\n%08X: ", i+offset);
+ p += slprintf(buf+p, sizeof(buf)-p, "\n%08X: ", i+offset);
}
if (i<len) {
c = *addr++;
- p += snprintf(buf+p, sizeof(buf)-p, "%02X ", c);
+ p += slprintf(buf+p, sizeof(buf)-p, "%02X ", c);
tmp[i%16] = c>=32 ? c : '.';
tmp[(i%16)+1] = '\0';
} else {
- p += snprintf(buf+p, sizeof(buf)-p, " ");
+ p += slprintf(buf+p, sizeof(buf)-p, " ");
}
if (i%16==15) {
- p += snprintf(buf+p, sizeof(buf)-p, " %s", tmp);
+ p += slprintf(buf+p, sizeof(buf)-p, " %s", tmp);
if (i>=len) {
break;
}