1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

fpos_t should have been off_t.

Noticed by Philip Olson.
This commit is contained in:
Wez Furlong
2002-12-23 02:55:29 +00:00
parent 9b16b3d7b8
commit 673dee58ad
+1 -1
View File
@@ -2418,7 +2418,7 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(char *path, char *mode, int optio
}
if (stream && stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && strchr(mode, 'a')) {
fpos_t newpos = 0;
off_t newpos = 0;
/* if opened for append, we need to revise our idea of the initial file position */
if (0 == stream->ops->seek(stream, 0, SEEK_CUR, &newpos TSRMLS_CC)) {