Quote
Is there a memory structure which a DLL can look at to see what's the safe byte length to output back to mIRC, or should the documentation just be updated to indicate the max safe bytes whether or not the buffer is bumped up to be 3*(maxlenl+grace)?

It should be possible to extended the DLL LOADINFO structure itself to include this in future versions. I have added this to my to-do list.