cvs: php4 /ext/ftp ftp.c

From: Date: Mon, 19 May 2003 13:26:28 +0000
Subject: cvs: php4 /ext/ftp ftp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-21075@lists.php.net to get a copy of this message
moriyoshi Mon May 19 09:26:28 2003 EDT Modified files: /php4/ext/ftp ftp.c Log: Fixed bug #23683 Index: php4/ext/ftp/ftp.c diff -u php4/ext/ftp/ftp.c:1.85 php4/ext/ftp/ftp.c:1.86 --- php4/ext/ftp/ftp.c:1.85 Tue Mar 25 03:07:11 2003 +++ php4/ext/ftp/ftp.c Mon May 19 09:26:28 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ftp.c,v 1.85 2003/03/25 08:07:11 sebastian Exp $ */ +/* $Id: ftp.c,v 1.86 2003/05/19 13:26:28 moriyoshi Exp $ */ #include "php.h" @@ -202,9 +202,11 @@ } if (ftp->pwd) { efree(ftp->pwd); + ftp->pwd = NULL; } if (ftp->syst) { efree(ftp->syst); + ftp->syst = NULL; } } /* }}} */ @@ -227,6 +229,7 @@ if (ftp->pwd) { efree(ftp->pwd); + ftp->pwd = NULL; } return 1; @@ -426,9 +429,7 @@ if ((end = strrchr(++pwd, '"')) == NULL) { return NULL; } - *end = 0; - ftp->pwd = estrdup(pwd); - *end = '"'; + ftp->pwd = estrndup(pwd, end - pwd); return ftp->pwd; }

« previous php.cvs (#21075) next »