c bug fixed

Signed-off-by: FeiGuan <guanfei12345@sina.com>