[PATCH 5.19 0515/1157] libbpf: fix an snprintf() overflow check