diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2023-02-01 16:59:44 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2023-02-01 16:59:44 +0100 |
commit | f5a1a8835b125acb4cec5d25b0dfbf508b1faf3c (patch) | |
tree | 501a5de1a6cd7152fbfd1ef8e13f2984a05ae382 /camlibs | |
parent | 2e965d29c1692b52ae76aacc4a074d7fc31cfb25 (diff) | |
download | libgphoto2-f5a1a8835b125acb4cec5d25b0dfbf508b1faf3c.tar.gz |
make it clear we only use 32bit of time_t (Coverity)
Diffstat (limited to 'camlibs')
-rw-r--r-- | camlibs/st2205/st2205.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |