gcc 4.2 patch from nyhm of gentoo (thanks!)
This commit is contained in:
parent
5c4f7033ae
commit
ecbb43c9b0
1 changed files with 2 additions and 2 deletions
|
@ -312,7 +312,7 @@ char *ExpandArg (const char *path)
|
||||||
char *ExpandPath (const char *path)
|
char *ExpandPath (const char *path)
|
||||||
{
|
{
|
||||||
static char full[1024];
|
static char full[1024];
|
||||||
if (!qdir)
|
if (!qdir[0])
|
||||||
Error ("ExpandPath called without qdir set");
|
Error ("ExpandPath called without qdir set");
|
||||||
if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
|
if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
|
||||||
strcpy( full, path );
|
strcpy( full, path );
|
||||||
|
@ -325,7 +325,7 @@ char *ExpandPath (const char *path)
|
||||||
char *ExpandGamePath (const char *path)
|
char *ExpandGamePath (const char *path)
|
||||||
{
|
{
|
||||||
static char full[1024];
|
static char full[1024];
|
||||||
if (!qdir)
|
if (!qdir[0])
|
||||||
Error ("ExpandGamePath called without qdir set");
|
Error ("ExpandGamePath called without qdir set");
|
||||||
if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
|
if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
|
||||||
strcpy( full, path );
|
strcpy( full, path );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue