Address Coverity issue: filelength() can return negative value

14 jobs for master in 9 minutes and 39 seconds (queued for 14 seconds)
Status Job ID Name Coverage
  Build
passed #32350
FreeBSD
jsdoor-freebsd

00:04:39

passed #32351
Linux
jsdoor-linux

00:06:32

passed #32353
FreeBSD
jsdoor-windows

00:02:01

passed #32345
FreeBSD
sbbs-freebsd

00:06:24

passed #32340
Linux
sbbs-linux

00:09:13

passed #32343
Windows
sbbs-windows

00:05:32

passed #32352
FreeBSD
sexpots-freebsd

00:00:12

passed #32341
Linux
sexpots-linux

00:00:20

passed #32344
Windows
sexpots-windows

00:00:25

passed #32348
FreeBSD
syncdraw-freebsd

00:00:25

passed #32349
Linux
syncdraw-linux

00:01:02

passed #32346
FreeBSD
syncterm-freebsd

00:01:04

passed #32342
Linux
syncterm-linux

00:02:49

passed #32347
FreeBSD
syncterm-windows

00:01:52