Change strndup warning handler.