Update patch.c