Moved one line of code for no real reason (stemming from foolishness involved with not cleaning the build)

master
kts 2015-03-01 16:54:21 -08:00
parent 6e0a0b3226
commit a531be218c
1 changed files with 1 additions and 1 deletions

View File

@ -79,12 +79,12 @@ If not, the function will traverse the full hierarchy of the given directory and
*/
int AssetCache::fromDir(const char *dir) {
char cachepath[1024];
directory.assign(dir);
#ifndef _WIN32
sprintf(cachepath, "%s/.CACHE", dir);
#else
sprintf_s(cachepath, 1024, "%s/.CACHE", dir);
#endif
directory.assign(dir);
if (fromFile(cachepath) != 0) {
LOG(LOG_INFO) << FUNC_NAME << ": " << cachepath << " does not exist";
}