Update chsarp.cpp