diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-02-24 18:02:11 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-02-24 18:02:11 +0000 |
commit | 3588f9eed61804ab475ae2ed5c4160d92590e771 (patch) | |
tree | c230f17f7670082258a7a324a339074345709bad /ext/exif | |
parent | 9783f5f1f3dd69e06fc5ede7fb6715957bc43955 (diff) | |
download | php-git-3588f9eed61804ab475ae2ed5c4160d92590e771.tar.gz |
missing -1
Diffstat (limited to 'ext/exif')
-rw-r--r-- | ext/exif/exif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 2768e42313..3ecc273d91 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -1005,7 +1005,7 @@ static char * exif_get_tagname(int tag_num, char *ret, int len, tag_table_type t strlcpy(ret, tag_table[i].Desc, abs(len)); if (len < 0) { memset(ret + strlen(ret), ' ', -len - strlen(ret) - 1); - ret[-len] = '\0'; + ret[-len - 1] = '\0'; } return ret; } @@ -1018,7 +1018,7 @@ static char * exif_get_tagname(int tag_num, char *ret, int len, tag_table_type t strlcpy(ret, tmp, abs(len)); if (len < 0) { memset(ret + strlen(ret), ' ', -len - strlen(ret) - 1); - ret[-len] = '\0'; + ret[-len - 1] = '\0'; } return ret; } |