Fix: compare against zero when invoking memcmp()