Commit graph

26 commits

Author SHA1 Message Date
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
97f7b9a568 rename quakedef.h to host.h (I should have done this months ago).
NOTE: -{sdl,sgl,3dfx,ggi,wgl,mgl} targets are very likely to be broken
if any file fails to compile, just put #include "host.h" into it
2000-12-05 06:33:44 +00:00
Dabb
b426b6daa7 Crappy complier doesn't allow me to UNDEF _win32 on command line! So here we have def WIN32SDL until I figure out better way to do it. Oh yeah, WIN32 SDL/SGL now uses (totally crappy) SDL sounds instead of old directx sounds. 2000-12-03 10:47:07 +00:00
Zephaniah E. Hull
13bd5ce012 The init sequence cleanup!
Also broke up client.h into a lot of smaller headers.
Oh, software rendering works again.

And yes, this does hit a hell of a lot of files.
2000-10-29 15:35:24 +00:00
Bill Currie
2682888425 the big cvar value -> int_val audit. seems to work ok 2000-10-17 03:17:42 +00:00
Bill Currie
c91fd814e9 turns out some like interpolated, others don't. snd_interp conrols this.
Defaults to on so those used to 11k sampling won't be too suprised.
2000-10-06 18:42:02 +00:00
Zephaniah E. Hull
e4c9ccff8f Cvar audit 1, all unused cvars are gone, with the exception of software
rendering, and the server.
2000-09-30 04:08:40 +00:00
Zephaniah E. Hull
210ba16069 First off in gl_draw.c we have some nice cleanup code for the upload
code.

Then we have the completely purge of treating 'unsigned' as a type, it
is NOT a type, it is a TYPE MODIFIER!

Under gcc for x86 it happens to try and do something sane, just treat it
as a unsigned int, but that is EVIL, it is a MODIFIER and if ANYONE adds
code which uses unsigned as a type in itself I /WILL/ harm them!!!
2000-09-22 09:08:08 +00:00
Bill Currie
9f476ee5c6 port over a sound init fix from oldtree that prevents a crash if sound doesn't
init properly
2000-09-07 17:31:07 +00:00
Anton E. Gavrilov
b5a2d30444 CVAR_FIXME cleanup 2000-06-11 00:23:13 +00:00
Marcus Sundberg
5555a5339f 64-bit fix 2000-05-31 22:49:17 +00:00
Joseph Carter
e9463e2db9 pretty much finishes source/* 2000-05-22 07:46:47 +00:00
Bill Currie
ea1386f190 fixes for __attribute__((format)) (I'll commit that /after/ release) and freelook 2000-05-22 05:47:14 +00:00
Bill Currie
af032b8d55 port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet)
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.
2000-05-21 08:24:45 +00:00
Marcus Sundberg
84ff3a3c1b Fixed mingw32 warnings. 2000-05-21 00:08:27 +00:00
Bill Currie
116daa40e9 fix the seg on startup with -nosound 2000-05-18 02:46:05 +00:00
Bill Currie
64d00faa8f Apply theoddone33's cvar patch (he's having connectivity problems with tank) 2000-05-17 23:16:23 +00:00
Bill Currie
832af13c12 all files now include config.h 2000-05-17 10:03:19 +00:00
Brian Koropoff
e30c17729c Various things from theoddone. For some reason he can't commit... 2000-05-17 01:52:15 +00:00
Dan Olson
1d26c02826 Cvar merge... segfault problems... also unknown problems in vid_svga.c 2000-05-16 04:47:41 +00:00
Joseph Carter
6e37b33f44 sys.h is no longer part of quakedef.h
sys_wina.S is now sys_x86.S (same as now gone sys_dosa.S, used on Linux too)

Updated Linux Makefile to reflect above

Linux translation table thingy now compiles properly
2000-05-14 16:56:28 +00:00
Yan Sweitzer
bfb28427a9 cleaned external references to in_win.c
include in_win.h
2000-05-14 09:57:28 +00:00
Joseph Carter
38f9b705b9 Whee! Every source file just got edited. Added the QF-style GPL header
to the top.  What I didn't add was descriptions.  Someone else wanna take
those on?
2000-05-11 16:03:29 +00:00
Dan Olson
b139acafc2 ^M cleanup, and qw-server compiles with -Werror 2000-05-10 20:33:16 +00:00
Joseph Carter
d859383680 Initial revision 2000-05-10 11:29:38 +00:00