I see that, as of r3781, lib/framework/debug.c makes use of strnlen(), which is a GNU extension that is not part of the C standard. See the strnlen manpage on Linux, which indicates this fact.
I was going to replace it with just strlen(), but I see that we have a strnlen1() function in lib/framework/strnlen1.[ch]. However, this function returns either maxlen or the equivalent of strlen() + 1. Why does it add 1? In the meantime, I am going to make the dumpLog() function take care of the string length limiting a bit differently so that the game can be built on non-GNU platforms. Feel free to rewrite this code in a standards-compliant way. I just wanted to let everyone know why I'm making this change. _______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev