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:
avolkov
2003-02-17 19:11:54 +00:00
parent a6847195a2
commit fe1ce2d937
+3 -1
View File
@@ -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)) {