Update g_cmd.c