I use mystic spirit 0.2.10 and while I have crash on server I have error connected with this function in otserv.cpp, line 158
line 158 is here:
whats incorrect? do you know something about it?
Code:
void badAllocationHandler()
{
// Use functions that only use stack allocation
puts("Allocation failed, server out of memory.\nDecrease the size of your map or compile in 64 bits mode.");
char buf[1024];
assert(fgets(buf, sizeof(buf), stdin) != 0);
exit(-1);
}
line 158 is here:
Code:
assert(fgets(buf, sizeof(buf), stdin) != 0);
whats incorrect? do you know something about it?