mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-14 20:18:21 +00:00
Two crash fixes reported on the forums are hopefully fixed.
This commit is contained in:
@@ -3015,7 +3015,8 @@ ENCODE(OP_ReadBook) {
|
||||
eq->window = emu->window;
|
||||
OUT(type);
|
||||
eq->invslot = 0; // Set to hard 0 since it's not required for the structure to work
|
||||
memcpy(eq->txtfile, emu->booktext, sizeof(eq->txtfile));
|
||||
if(sizeof(emu->booktext) > 0 && sizeof(emu->booktext) < 8194)
|
||||
strncpy(eq->txtfile, emu->booktext, sizeof(eq->txtfile));
|
||||
FINISH_ENCODE();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user