snprintf(s1, sizeof(s1), " AND MEDIA_STORAGE_TYPE=%d",
ad->source_type);
-
- strcat(buf, s1);
+ strncat(buf, s1, strlen(s1));
}
if (cond) {
char s2[64];
snprintf(s2, sizeof(s2), " AND %s", cond);
-
- strcat(buf, s2);
+ strncat(buf, s2, strlen(s2));
}
media_filter_set_condition(tmp_filter, buf,
snprintf(s1, sizeof(s1), " AND MEDIA_STORAGE_TYPE=%d",
fd->source_type);
-
- strcat(buf, s1);
+ strncat(buf, s1, strlen(s1));
}
if (cond) {
char s2[256];
snprintf(s2, sizeof(s2), " AND %s", cond);
-
- strcat(buf, s2);
+ strncat(buf, s2, strlen(s2));
}
media_filter_set_order(tmp_filter, MEDIA_CONTENT_ORDER_ASC,
fd->parent_id);
}
- strcat(buf, s);
+ strncat(buf, s, strlen(s));
}
if (!_get_sub_folder_list(fd, buf)) {
snprintf(s, sizeof(s), " AND MEDIA_STORAGE_TYPE=%d",
md->source_type);
-
- strcat(buf, s);
+ strncat(buf, s, strlen(s));
}
media_filter_set_condition(tmp_filter, buf,
if (country) {
snprintf(s, sizeof(s), ", %s", country);
- strcat(str, s);
+ strncat(str, s, strlen(s));
}
}