rem: assert (snprintf (userFile, PATH_MAX, "%skeys.cfg", configDir) != -1);
add: cb = snprintf (userFile, PATH_MAX, "%skeys.cfg", configDir); assert (cb != -1);
context: initKeyConfig() {	char userFile[PATH_MAX];    /* System-wide key config */	FILE *fp;		assert (snprintf (userFile, PATH_MAX, "%skeys.cfg", configDir) != -1);	// strlen (configDir) <= PATH_MAX - 13		if (fileExists (userFile)) {		fp = res_OpenResFile (userFile, "rt");	} else {		if (copyFile ("starcon.key", userFile) == -1) {			fprintf(stderr, "Warning: Could not copy default key config "					"to %s: %s.\n", userFile, strerror (errno));		} else			fprintf(stderr, "Copying default key config file to %s.\n",					userFile);		fp = res_OpenResFile ("starcon.key", "rt");	}	LoadKeyConfig (fp, 0);			// second arg is file length, but is unused.			// It should be temporary anyhow.	res_CloseResFile (fp);}