strncat is not the maximum length of the destination string, but of the SOURCE
string, thus strncat (dest, src, sizeof (dest)) is incorrect. It should be
strncat (dest, src, sizeof (text) - strlen (dest)). Even then, no terminating
nul will be written if src is too long, but at least it won't crash the stack:)
In order to do so I:
* included strings.h and string.h in many files so various functions would be
defined
* Fixed model_t collision problem in cl_main.c (Solaris)
* com.c - corrected WORDS_BIGENDIAN spelling
* gl_draw.c - Use HAVE_GL_COLOR_INDEX8_EXT to avoid referencing
GL_COLOR_INDEX8_EXT when it isn't available
* net_udp.c - use socklen_t to appease AIX
little problem of mixed QFile and FILE. Since we're not using ZLib in
this tree, QFile makes no real sense. That didn't fix the real problem
I am having though.
split up the headerfiles and such. common.[ch] and qwsvdef.h no longer exist. More work still needs to be done (esp for windows) but this should be a major improvement.
that also fails, DIE GRACEFULLY rather than continue to run with things
all screwed up from the intermission settings. Fixes weird behavior under
any mod where a map can change.
tues (not that they care to be honest..) VERSION is gone, use the strings
QW_VERSION and QF_VERSION. I'd like QW_VERSION to go away but I don't
think we're ready to screw with that just yet. Note, those are strings,
not floats.
Also defined QSG_STANDARD and set all the star keys the current qw-server
does.
qw-* -> qf-*, unlike the main tree this one is not planned to be just QW.