Fix up new -Wformat-truncate and -Wrestrict errors

New gcc features finding new issues break the build.
1 job for master in 7 minutes and 45 seconds (queued for 3 seconds)