summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-09-02 22:59:58 +0000
committerPierre Joye <pajoye@php.net>2009-09-02 22:59:58 +0000
commita8c40d5b3aa67b80dde2c2faa69e80353b43a22d (patch)
tree8af66f34a60b0f679b76365a25a233ca96989719 /TSRM
parent4417646d720d9e0ca1ddd492cf2b734738b8a78a (diff)
downloadphp-git-a8c40d5b3aa67b80dde2c2faa69e80353b43a22d.tar.gz
- #48746, len includes null already
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_virtual_cwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index 0852e9ab24..1ae6c3bbc5 100644
--- a/TSRM/tsrm_virtual_cwd.c
+++ b/TSRM/tsrm_virtual_cwd.c
@@ -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);