]> granicus.if.org Git - php/commitdiff
- #48746, len includes null already
authorPierre Joye <pajoye@php.net>
Wed, 2 Sep 2009 22:59:58 +0000 (22:59 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 2 Sep 2009 22:59:58 +0000 (22:59 +0000)
TSRM/tsrm_virtual_cwd.c

index 0852e9ab2457ecdf9d480495add229219ffa0814..1ae6c3bbc5eeaf89556b0e3e46c57ca3f96d2402 100644 (file)
@@ -746,7 +746,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
                                *(path + bufindex) = 0;
                                j = bufindex;
                        } else {
-                               j = rname_len + 1;
+                               j = len;
                        }
                        tsrm_free_alloca(pbuffer, use_heap_large);