cvs: TSRM / tsrm_virtual_cwd.c
| From: | Ilia Alshanetsky | Date: | Tue, 22 Oct 2002 18:58:00 +0000 |
| Subject: | cvs: TSRM / tsrm_virtual_cwd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15163@lists.php.net to get a copy of this message | ||
iliaa Tue Oct 22 14:58:00 2002 EDT
Modified files:
/TSRM tsrm_virtual_cwd.c
Log:
Fixed a bug noticed by Jon Parise.
Index: TSRM/tsrm_virtual_cwd.c
diff -u TSRM/tsrm_virtual_cwd.c:1.34 TSRM/tsrm_virtual_cwd.c:1.35
--- TSRM/tsrm_virtual_cwd.c:1.34 Tue Oct 22 14:39:33 2002
+++ TSRM/tsrm_virtual_cwd.c Tue Oct 22 14:57:59 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_virtual_cwd.c,v 1.34 2002/10/22 18:39:33 iliaa Exp $ */
+/* $Id: tsrm_virtual_cwd.c,v 1.35 2002/10/22 18:57:59 iliaa Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -289,9 +289,9 @@
char resolved_path[MAXPATHLEN];
if (IS_ABSOLUTE_PATH(buf, size)) {
- memcpy(resolved_path, buf, size);
- p[size] = '\0';
p = resolved_path;
+ memcpy(p, buf, size);
+ p[size] = '\0';
} else {
virtual_getcwd(tmp_path, MAXPATHLEN TSRMLS_CC);
p = tmp_path + strlen(tmp_path);