]> granicus.if.org Git - php/commitdiff
- MF53: len includes the NULL already
authorPierre Joye <pajoye@php.net>
Thu, 3 Sep 2009 19:11:30 +0000 (19:11 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 3 Sep 2009 19:11:30 +0000 (19:11 +0000)
TSRM/tsrm_virtual_cwd.c

index fd68a44e6b65a684b0c7efd62d522fc16853a362..07708a7cfb4eb1cf9e20b74c949406e7eb1b67e1 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);