[build] make gcc8 buffer boundaries check happy
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>