}
strncpy (qdir, path, c+len+count-path);
Sys_Printf ("qdir: %s\n", qdir);
- for ( i = 0; i < strlen( qdir ); i++ )
+ for ( i = 0; i < (int) strlen( qdir ); i++ )
{
if ( qdir[i] == '\\' )
qdir[i] = '/';
{
strncpy (gamedir, path, c+1-path);
- for ( i = 0; i < strlen( gamedir ); i++ )
+ for ( i = 0; i < (int) strlen( gamedir ); i++ )
{
if ( gamedir[i] == '\\' )
gamedir[i] = '/';
char *ExpandPath (const char *path)
{
static char full[1024];
- if (!qdir)
+ if (!*qdir)
Error ("ExpandPath called without qdir set");
if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
strcpy( full, path );
char *ExpandGamePath (const char *path)
{
static char full[1024];
- if (!qdir)
+ if (!*qdir)
Error ("ExpandGamePath called without qdir set");
if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
strcpy( full, path );