mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-30 07:12:17 +00:00
Two crash fixes reported on the forums are hopefully fixed.
This commit is contained in:
1 parent
925ba2199e
commit
56825e9ed0
10 files changed
+24
-14
No files matched your search
@@ -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