Update zimpatch.cpp

Final update