rem: mkdirhier (saveDir);
add: if (mkdirhier (saveDir) == -1) exit (EXIT_FAILURE);
context: prepareSaveDir (void) {	saveDir = malloc (PATH_MAX - 13);	if (expandPath (saveDir, PATH_MAX - 13, SAVEDIR) == -1)	{		// Doesn't have to be fatal, but might mess up things when saving		// config files.		fprintf (stderr, "Fatal error: Invalid path to config files.\n");		exit (EXIT_FAILURE);	}	saveDir = realloc (saveDir, strlen (saveDir) + 1);	// Create the path upto the save dir, if not already existing.	mkdirhier (saveDir);//#ifdef DEBUG	fprintf(stderr, "Saved games are kept in %s.\n", saveDir);//#endif}