From: Pierre Joye Date: Thu, 3 Sep 2009 19:11:30 +0000 (+0000) Subject: - MF53: len includes the NULL already X-Git-Tag: php-5.4.0alpha1~191^2~2701 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebce3280665c009e4a31532205c14e17aff2d654;p=php - MF53: len includes the NULL already --- diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index fd68a44e6b..07708a7cfb 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);