Update applypatch.c