aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrien333 <rien334@gmail.com>2019-08-16 15:15:45 +0200
committerHarry Jeffery <harry@exec64.co.uk>2019-08-16 18:51:16 +0100
commit505340f9fdd7e8d8356c25035b254c8f9ee367a6 (patch)
tree2dea2ac6e2fd3888b062f0d49b7b835a37cf7eec
parentec14d5f41251fadc03370c9cbe5f2e0bdb5ca9ff (diff)
downloadimv-505340f9fdd7e8d8356c25035b254c8f9ee367a6.tar.gz
Fix misspelling of slideshow_duration environment variable
I noticed that echoing `$imv_slideshow_duration` always came up blank. Turns out, it's misspelled in imv.c. Correcting the spelling mistake makes it behave as expected.
-rw-r--r--src/imv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imv.c b/src/imv.c
index 0f42371..9dbc7d5 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -1706,10 +1706,10 @@ static void update_env_vars(struct imv *imv)
}
snprintf(str, sizeof str, "%f", imv->slideshow.duration);
- setenv("imv_slidshow_duration", str, 1);
+ setenv("imv_slideshow_duration", str, 1);
snprintf(str, sizeof str, "%f", imv->slideshow.elapsed);
- setenv("imv_slidshow_elapsed", str, 1);
+ setenv("imv_slideshow_elapsed", str, 1);
}
static size_t generate_env_text(struct imv *imv, char *buf, size_t buf_len, const char *format)