[PATCH] BSD: Fix invalid pointer derefence in logging code