diff options
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 2 |
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); |