[PATCH v2 1/1] wrc: Avoid undefined behavior in the FreeBSD case