[PATCH 5.15 350/779] libbpf: fix an snprintf() overflow check