1
0
Fork 0
forked from fte/fteqw

Fixed some toolchain warnings.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2532 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2007-07-23 10:59:48 +00:00
parent 76adf4ae34
commit 5b04efa344

View file

@ -1386,7 +1386,7 @@ void *SZ_GetSpace (sizebuf_t *buf, int length)
if (length > buf->maxsize)
Sys_Error ("SZ_GetSpace: %i is > full buffer size", length);
Sys_Printf ("SZ_GetSpace: overflow\n"); // because Con_Printf may be redirected
Sys_Printf ("SZ_GetSpace: overflow (%i+%i bytes of %i)\n", buf->cursize, length, buf->maxsize); // because Con_Printf may be redirected
SZ_Clear (buf);
buf->overflowed = true;
}
@ -1550,7 +1550,7 @@ void COM_FileBase (char *in, char *out, int outlen)
s = in + strlen(in) - 1;
while (s != in && *s != '.')
while (s > in && *s != '.')
s--;
for (s2 = s ; *s2 && *s2 != '/' ; s2--)
@ -2852,7 +2852,11 @@ void Info_RemoveKey (char *s, const char *key)
if (!strcmp (key, pkey) )
{
strcpy (start, s); // remove this part
//strip out the value by copying the next string over the top of this one
//(we were using strcpy, but valgrind moaned)
while(*s)
*start++ = *s++;
*start = 0;
return;
}