smurf: Correct calculation of default MAXMEM value