Path should not change when creating directory

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@952 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 03c3029cd30b404fef52db07dae86b90b15252df
Former-commit-id: e0867a8bae536a11e88221bc772441db5a0b3032
This commit is contained in:
kmetykog 2009-06-08 11:01:11 +00:00
parent 6a55cb4dd8
commit cd6ea94597
2 changed files with 2 additions and 3 deletions

View file

@ -490,7 +490,7 @@ int GfNearestPow2 (int x)
}
int GfCreateDir(char *path)
int GfCreateDir(const char *path)
{
if (path == NULL) {
return GF_DIR_CREATION_FAILED;
@ -499,7 +499,6 @@ int GfCreateDir(char *path)
const int BUFSIZE = 1024;
char buf[BUFSIZE];
strncpy(buf, path, BUFSIZE);
path = buf;
#ifdef WIN32
#define mkdir(x) _mkdir(x)

View file

@ -378,7 +378,7 @@ extern void SetDataDir(const char *buf);
extern int GetSingleTextureMode (void);
extern void SetSingleTextureMode (void);
extern int GfNearestPow2 (int x);
extern int GfCreateDir(char *path);
extern int GfCreateDir(const char *path);
/*
* Copyright (c) 1991, 1993