From f5a1a8835b125acb4cec5d25b0dfbf508b1faf3c Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 1 Feb 2023 16:59:44 +0100 Subject: make it clear we only use 32bit of time_t (Coverity) --- camlibs/st2205/st2205.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/st2205/st2205.c b/camlibs/st2205/st2205.c index 5c45c808f..9f9773f15 100644 --- a/camlibs/st2205/st2205.c +++ b/camlibs/st2205/st2205.c @@ -970,7 +970,7 @@ st2205_init(Camera *camera) CHECK (st2205_check_fat_checksum (camera)) - camera->pl->rand_seed = time(NULL); + camera->pl->rand_seed = time(NULL) & 0xffffffff; /* Some 96x64 models don't use compression, unfortunately I've found no way to detect if this is the case, so we keep a list of firmware -- cgit v1.2.1