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:
parent
76adf4ae34
commit
5b04efa344
1 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue