Please sign in to comment.
examples/fopen: fix comparison
As want is size_t, (file->buffer_pos - want) is unsigned, so checking if it's less than zero makes no sense. Check if file->buffer_pos is less than want instead to avoid the unsigned integer wraparound. Closes #3975
- Loading branch information...