From: Pierre Joye Date: Wed, 2 Sep 2009 22:59:58 +0000 (+0000) Subject: - #48746, len includes null already X-Git-Tag: php-5.3.1RC1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8c40d5b3aa67b80dde2c2faa69e80353b43a22d;p=php - #48746, len includes null already --- 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);