Project

General

Profile

Bug #729 ยป 0015-Fix-rscompat_postprocess-stringop-overflow-warning.patch

Marko Lindqvist, 06/25/2024 04:24 AM

View differences:

server/rscompat.c
if (info->version < RSFORMAT_3_1) {
enum unit_class_flag_id nothing
= unit_class_flag_id_by_name("HutNothing", fc_strcasecmp);
= unit_class_flag_id_by_name("HutNothing", fc_strcasecmp);
unit_class_iterate(uc) {
if (uc->rscompat_cache_from_3_0.hut_behavior == HUT_NOTHING) {
BV_SET(uc->flags, nothing);
if (unit_class_flag_id_is_valid(nothing)) {
BV_SET(uc->flags, nothing);
}
} else if (uc->rscompat_cache_from_3_0.hut_behavior == HUT_FRIGHTEN) {
BV_SET(uc->flags, UCF_HUT_FRIGHTEN);
}
    (1-1/1)