Jeff Teunissen
54e2a4d9d3
Okay, the big whitespace reformat. There is some silliness (case
...
statements, variable declarations), but all in all it's not bad.
2000-12-08 06:51:37 +00:00
Bill Currie
29970187d7
sprintf audit.
2000-12-05 16:51:01 +00:00
Bill Currie
b34504057c
char *buf; strn.* (..., sizeof(buf) ...) doesn't work so well :/
2000-12-05 16:41:28 +00:00
Bill Currie
eae11661e4
strncat parameter audit. Unfortunatly, strncat is counter-intutite: the n in
...
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:)
2000-12-05 16:04:12 +00:00
Zephaniah E. Hull
66e0e31b57
strcat -> strncat
...
sprintf -> snprintf
AKA, really big buffer overflow security fixes.
More to come, geez we have holes everywhere.
2000-12-05 11:08:30 +00:00
Bill Currie
21787a552f
Add Qgetline for Mercury. Safely read in a random lenght line from a file.
2000-10-06 07:05:22 +00:00
Bill Currie
677b7de94d
%s/HAS_ZLIB/HAVE_ZLIB/g
2000-09-30 05:56:00 +00:00
Bill Currie
e7a25fb76a
fix a couple of thinkos
2000-09-28 20:07:44 +00:00
Bill Currie
8f3084e923
fix for win32 zip support
2000-09-28 19:48:06 +00:00
Bill Currie
86f87122c0
zlib support (gzipped pack contents). if you have a probelm with gzgets, you
...
have 3 choices: remove /usr/X11R6/lib/libz.a, --diable-zlib, or fix configure.
I do intend on fixing it myself.
2000-09-27 19:44:26 +00:00
Joseph Carter
cb04fd6496
fix the +gamedir problem and fix my QFile removal
2000-05-22 21:32:14 +00:00
Joseph Carter
3d59dfed98
Before I can fix the (MANY!) problems with newtree, I have to fix the
...
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.
2000-05-22 21:16:22 +00:00
Bill Currie
68ca31e417
port in q* from OT, and split of other things in prep for removing common.*
...
The use of these files isn't being committed just yet.
2000-05-20 09:42:02 +00:00