Fixed VC release-build not copying the key config (assert defined to nothing)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@763 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -274,8 +274,10 @@ static void
|
||||
initKeyConfig() {
|
||||
char userFile[PATH_MAX]; /* System-wide key config */
|
||||
FILE *fp;
|
||||
int cb;
|
||||
|
||||
assert (snprintf (userFile, PATH_MAX, "%skeys.cfg", configDir) != -1);
|
||||
cb = snprintf (userFile, PATH_MAX, "%skeys.cfg", configDir);
|
||||
assert (cb != -1);
|
||||
// strlen (configDir) <= PATH_MAX - 13
|
||||
|
||||
if (fileExists (userFile)) {
|
||||
|
||||
Reference in New Issue
Block a user