* lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".