Change Native API Referece url link 67/122667/3
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 3 Apr 2017 06:38:20 +0000 (15:38 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 4 Apr 2017 03:26:01 +0000 (12:26 +0900)
Change-Id: Ib431edfe08a0f5438ec75745eb664eed3e4e0820

LICENSE.Apache-2.0 [moved from LICENSE.APLv2 with 100% similarity]
doc/video_util_doc.h
packaging/capi-media-video-util.spec
test/video_util_test.c

similarity index 100%
rename from LICENSE.APLv2
rename to LICENSE.Apache-2.0
index b45e1f4..7c5bbb3 100644 (file)
@@ -48,7 +48,7 @@
  *
  * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
  *
- * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tizen-studio/native-tools/configuring-your-app/manifest-text-editor#feature"><b>Feature Element</b>.</a>
  *
  * @subsection CAPI_MEDIA_VIDEO_UTIL_FOREACH_OPERATIONS Foreach Operations
  * <div><table class="doxtable" >
index 91c71c9..81859df 100755 (executable)
@@ -52,7 +52,7 @@ cp test/video_util_test %{buildroot}%{_bindir}
 %files
 %manifest %{name}.manifest
 %{_libdir}/lib*.so.*
-%license LICENSE.APLv2
+%license LICENSE.Apache-2.0
 %{_bindir}/*
 
 %files devel
index fe170bb..c6b341c 100644 (file)
@@ -272,7 +272,7 @@ static void input_filename(char *filename)
        int len = strlen(filename);
        int ret = VIDEO_UTIL_ERROR_NONE;
 
-       if (len < 0 || len > MAX_STRING_LEN) {
+       if (len < 0 || len > MAX_STRING_LEN - 1) {
                LOGE("Input file name is wrong");
                return;
        }
@@ -294,6 +294,7 @@ static void input_filename(char *filename)
        }
 
        strncpy(g_uri, filename, len);
+       g_uri[len] = '\0';
 
        ret = video_util_set_file_path(video_h, g_uri);