jasper-software / xv

XV Software
Other
26 stars 9 forks source link

xvjpeg.c,xvpng.c: Fix gcc warnings on -Wclobbered #30

Closed william8000 closed 2 months ago

william8000 commented 2 months ago

Initializations in declarations in functions with setjmp() trigger this warning. Initializations have to be changed to assignments after the declarations. The other changes fix some warnings about strncpy truncation by ensuring that the destination is null terminated. This should resolve https://github.com/jasper-software/xv/issues/28