diff options
author | Ingvar Stepanyan <me@rreverser.com> | 2022-09-26 15:43:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 16:43:07 +0200 |
commit | fb2b1283531bcaccc628c234f2a4f5082d102b8e (patch) | |
tree | 0125612683f3a4cf9605ad081f989263c64476d6 /camlibs | |
parent | c387e6be1140414c64dbc1b9d0551cd757e4a9b2 (diff) | |
download | libgphoto2-fb2b1283531bcaccc628c234f2a4f5082d102b8e.tar.gz |
Unify & fix file reading in vcamera (#841)
`read` can (and, in my case, did) return partial result instead of reading the whole number of bytes provided, leading to errors.
I replaced `open` / `read` with `fopen` / `fread` instead, which don't suffer from this issue, as well as extracted into a helper function.
Diffstat (limited to 'camlibs')
0 files changed, 0 insertions, 0 deletions