diff --git a/lib/misc/time b/lib/misc/time index 53d6831..aa17a2b 100644 --- a/lib/misc/time +++ b/lib/misc/time @@ -1,6 +1,6 @@ -hour : 16 -day_of_week : 0 -day_of_month: 0 +hour : 4 +day_of_week : 2 +day_of_month: 2 month : 0 year : 8 - diff --git a/src/buffer.c b/src/buffer.c index 9829adb..01a525d 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -123,7 +123,9 @@ int bufferReplace(BUFFER *buf, const char *a, const char *b, int all) { return 0; // if we won't have enough room, do the expansion - if(to_replace * (b_len - a_len) + buf->len > buf->maxlen) + // Description crashbug - fix added based on old forum trawling: + // http://www.mudbytes.net/forum/comment/51178/ + if(to_replace * (b_len - a_len) + buf->len >= buf->maxlen) len_needed = ((buf->maxlen + to_replace*(b_len-a_len))*5)/4 + 20; }