mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-24 04:21:44 +01:00
Fixed a crash bug in oasis_list caused by buffer overflows
This commit is contained in:
@@ -232,7 +232,12 @@ void perform_obj_type_list(struct char_data * ch, char *arg)
|
|||||||
send_to_char(ch, "Not a valid item type");
|
send_to_char(ch, "Not a valid item type");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
len += tmp_len;
|
if (len + tmp_len < sizeof(buf) - 1)
|
||||||
|
len += tmp_len;
|
||||||
|
else {
|
||||||
|
buf[sizeof(buf) -1] = '\0';
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user