diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-25 19:24:13 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-06-05 20:38:08 +0200 |
commit | 992083b1abe2f19947abe1d5ba01c488458f6e66 (patch) | |
tree | 741ded2075c811e9353e8ce405e6a66a8ac7df97 /.dir-locals.el | |
parent | e23c52b3295a525fbaae9e7ed3e7061fea6dffc2 (diff) |
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 https://github.com/curl/curl/pull/3975
Diffstat (limited to '.dir-locals.el')
0 files changed, 0 insertions, 0 deletions