[PATCH 5.18 0484/1095] libbpf: fix an snprintf() overflow check