< prev index next >
src/java.desktop/share/native/libfreetype/src/base/ftstream.c
Print this page
*** 2,12 ****
*
* ftstream.c
*
* I/O stream support (body).
*
! * Copyright (C) 2000-2019 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed under the terms of the FreeType project
* license, LICENSE.TXT. By continuing to use, modify, or distribute
--- 2,12 ----
*
* ftstream.c
*
* I/O stream support (body).
*
! * Copyright (C) 2000-2020 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed under the terms of the FreeType project
* license, LICENSE.TXT. By continuing to use, modify, or distribute
*** 284,294 ****
FT_FREE( stream->base );
error = FT_THROW( Invalid_Stream_Operation );
}
stream->cursor = stream->base;
! stream->limit = stream->cursor + count;
stream->pos += read_bytes;
}
else
{
/* check current and new position */
--- 284,294 ----
FT_FREE( stream->base );
error = FT_THROW( Invalid_Stream_Operation );
}
stream->cursor = stream->base;
! stream->limit = FT_OFFSET( stream->cursor, count );
stream->pos += read_bytes;
}
else
{
/* check current and new position */
< prev index next >