config.c: merge rev 1.10 from OpenBSD.

schwarze@openbsd.org:

use getlist() instead of hand-rolled equivalent, no functional change;
diff from Kent R. Spillner <kspillner at acm org>;
no objections came up when showing this diff on tech@