Update smanip.c