diff options
author | Greg Beaver <cellog@php.net> | 2008-05-07 17:35:20 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-05-07 17:35:20 +0000 |
commit | 0773c7f6a2d41487e0307976efcab262fb340100 (patch) | |
tree | f566644b6f286c97db32afc032f40b971bf7e876 /ext | |
parent | f134a909c3199ae0a1b23b53c8cd66703ea62bb8 (diff) | |
download | php-git-0773c7f6a2d41487e0307976efcab262fb340100.tar.gz |
fix tar extension detection in open code
Diffstat (limited to 'ext')
-rw-r--r-- | ext/phar/tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/tar.c b/ext/phar/tar.c index 7288b3bbff..343aea58ef 100644 --- a/ext/phar/tar.c +++ b/ext/phar/tar.c @@ -378,7 +378,7 @@ int phar_open_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, i myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); } if (myphar->ext) { - myphar->ext_len = (myphar->fname + fname_len) - p; + myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; } } myphar->fp = fp; |