Explicitly use the %s string conversion specifier for errmsg.