Re: cvs: TSRM / tsrm_virtual_cwd.c

From: Date: Tue, 22 Oct 2002 18:53:01 +0000
Subject: Re: cvs: TSRM / tsrm_virtual_cwd.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15160@lists.php.net to get a copy of this message
On Tue, Oct 22, 2002 at 06:39:33PM -0000, Ilia Alshanetsky wrote: > memcpy(resolved_path, buf, size); > p[size] = '\0'; > - return resolved_path; > + p = resolved_path; I'm probably reading this wrong (I didn't get much sleep last night, so that's my lousy excuse), but shouldn't that NUL (\0) be added _after_ p is assigned to point to resolved_path? p does not point to anything before this block of code. -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

« previous php.cvs (#15160) next »