summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2016-12-01 20:33:24 +0100
committerBert Münnich <ber.t@posteo.de>2016-12-01 21:18:41 +0100
commitff2ce99bf7dc08ce8eae47dd980c7af60ad51197 (patch)
tree5a96b7fc9d021f31fbce6c847efcfee7d4d79269 /options.c
parent9a85dd41d8551f82a5d00c8e0dd0807e23bbdc6d (diff)
parent27bbaab976e02d2458099de96ec71d14aa1ade8e (diff)
downloadnsxiv-ff2ce99bf7dc08ce8eae47dd980c7af60ad51197.tar.zst
Merge djhejna/floatdelay
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.c b/options.c
index 5220330..258dc37 100644
--- a/options.c
+++ b/options.c
@@ -136,7 +136,7 @@ void parse_options(int argc, char **argv)
_options.recursive = true;
break;
case 'S':
- n = strtol(optarg, &end, 0);
+ n = strtof(optarg, &end) * 10;
if (*end != '\0' || n <= 0)
error(EXIT_FAILURE, 0, "Invalid argument for option -S: %s", optarg);
_options.slideshow = n;