fix a bug in src/oa_sms.c