mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Revert as per Herr Schumann's request.
This commit is contained in:
parent
506ceb28fc
commit
28160f73d0
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, cons
|
|||
memcpy(buf, data->basedir, data->basedir_len);
|
||||
n = data->basedir_len;
|
||||
buf[n++] = PHP_DIR_SEPARATOR;
|
||||
for (i = 0; i < (int) data->dirdepth; i++) {
|
||||
for (i = 0; i < data->dirdepth; i++) {
|
||||
buf[n++] = *p++;
|
||||
buf[n++] = PHP_DIR_SEPARATOR;
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ PS_WRITE_FUNC(files)
|
|||
* the existing data set.
|
||||
*/
|
||||
|
||||
if (vallen < (int) data->st_size)
|
||||
if (vallen < data->st_size)
|
||||
ftruncate(data->fd, 0);
|
||||
|
||||
#ifdef HAVE_PWRITE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue