diff options
author | NRK <nrk@disroot.org> | 2022-09-14 06:58:41 +0200 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2022-09-14 06:58:41 +0200 |
commit | daee34477a87f7eb97aa537577a48ddcf5a7d30b (patch) | |
tree | a3e7416150cfd6094c5de7793428f6b856da6d5b /icon/48x48.png | |
parent | e356add07c6246b8a27a5d193e2e89da4afee6ad (diff) | |
download | nsxiv-daee34477a87f7eb97aa537577a48ddcf5a7d30b.tar.zst |
fix potential truncation of cli arguments (#367)
strtol() returns a `long`, but we're storing the result in an `int`
which might end up getting truncated. change `n` to `long` and guard
against >INT_MAX arguments in cases where it matters.
use a float for storing argument of `-S`
change `opt.slideshow` to `unsigned` similar to `img.ss.delay`
Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/367
Reviewed-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
Diffstat (limited to 'icon/48x48.png')
0 files changed, 0 insertions, 0 deletions