Correct pointer types in new clipme function