GCC 8 appears to have improved the snprintf truncation detection which revealed problems in the binlogrouter.