mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-20 17:20:12 +01:00
Fixed inconsistency in max page_length to 255. (thanks Parna)
This commit is contained in:
parent
bb95f622b8
commit
20cb453655
1 changed files with 1 additions and 1 deletions
|
|
@ -473,7 +473,7 @@ void page_string(struct descriptor_data *d, char *str, int keep_internal)
|
||||||
if (!str || !*str)
|
if (!str || !*str)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ((GET_PAGE_LENGTH(d->character) < 5 || GET_PAGE_LENGTH(d->character) > 254))
|
if ((GET_PAGE_LENGTH(d->character) < 5 || GET_PAGE_LENGTH(d->character) > 255))
|
||||||
GET_PAGE_LENGTH(d->character) = PAGE_LENGTH;
|
GET_PAGE_LENGTH(d->character) = PAGE_LENGTH;
|
||||||
d->showstr_count = count_pages(str, d->character);
|
d->showstr_count = count_pages(str, d->character);
|
||||||
CREATE(d->showstr_vector, char *, d->showstr_count);
|
CREATE(d->showstr_vector, char *, d->showstr_count);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue