Change-Id: I4bbe170ab7b8c0faabf517b9deda6dd947e93f2e
Name: capi-content-media-content
Summary: A Media content library in SLP C API
-Version: 0.2.69
+Version: 0.2.70
Release: 0
Group: Multimedia/API
License: Apache-2.0
return MEDIA_CONTENT_ERROR_INVALID_OPERATION;
}
- sprintf(c_uid, "%d", tzplatform_getuid(TZ_USER_NAME));
+ snprintf(c_uid, sizeof(c_uid), "%d", tzplatform_getuid(TZ_USER_NAME));
pid = getpid();
else
{
/*If root path, Stop Scanning*/
- if((storage_type == MEDIA_SVC_STORAGE_INTERNAL) && (strcmp(search_path, MEDIA_ROOT_PATH_INTERNAL) == 0)) {
+ if((storage_type == MEDIA_SVC_STORAGE_INTERNAL) && (STRING_VALID(MEDIA_ROOT_PATH_INTERNAL) && strcmp(search_path, MEDIA_ROOT_PATH_INTERNAL) == 0)) {
break;
} else if((storage_type == MEDIA_SVC_STORAGE_EXTERNAL) && (STRING_VALID(MEDIA_ROOT_PATH_SDCARD)) && (strcmp(search_path, MEDIA_ROOT_PATH_SDCARD) == 0)) {
break;