}
caller_appid = (char *)bundle_get_val(b, AUL_K_CALLER_APPID);
- if (caller_appid && strncmp(caller_appid,
- consumer_appid, strlen(consumer_appid)) != 0) {
+ if (caller_appid && strcmp(caller_appid, consumer_appid) != 0) {
_LOGE("The passed appid(%s) is different from the registered appid(%s).",
caller_appid, consumer_appid);
return DATA_CONTROL_ERROR_NONE;
const char *order = arg_list[i++]; /* order */
_LOGD("where: %s, order: %s", where, order);
- if (strncmp(where, DATACONTROL_EMPTY, strlen(DATACONTROL_EMPTY)) == 0)
+ if (strcmp(where, DATACONTROL_EMPTY) == 0)
where = NULL;
- if (strncmp(order, DATACONTROL_EMPTY, strlen(DATACONTROL_EMPTY)) == 0)
+ if (strcmp(order, DATACONTROL_EMPTY) == 0)
order = NULL;
const char *page_number = arg_list[i++];
} else {
const char *where = arg_list[PACKET_INDEX_UPDATEWHERE];
_LOGD("UPDATE from where: %s", where);
- if (strncmp(where, DATACONTROL_EMPTY, strlen(DATACONTROL_EMPTY)) == 0)
+ if (strcmp(where, DATACONTROL_EMPTY) == 0)
where = NULL;
if (sql_callback.update_cb) {
sql_callback.update_cb(
{
const char *where = arg_list[PACKET_INDEX_DELETEWHERE];
_LOGD("DELETE from where: %s", where);
- if (strncmp(where, DATACONTROL_EMPTY, strlen(DATACONTROL_EMPTY)) == 0)
+ if (strcmp(where, DATACONTROL_EMPTY) == 0)
where = NULL;
if (sql_callback.delete_cb) {
sql_callback.delete_cb(