From 46445daa9cda4a59e5162d423006ab9c1226f9b3 Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Mon, 3 Apr 2017 15:38:20 +0900 Subject: [PATCH] Change Native API Referece url link Change-Id: Ib431edfe08a0f5438ec75745eb664eed3e4e0820 --- LICENSE.APLv2 => LICENSE.Apache-2.0 | 0 doc/video_util_doc.h | 2 +- packaging/capi-media-video-util.spec | 2 +- test/video_util_test.c | 3 ++- 4 files changed, 4 insertions(+), 3 deletions(-) rename LICENSE.APLv2 => LICENSE.Apache-2.0 (100%) diff --git a/LICENSE.APLv2 b/LICENSE.Apache-2.0 similarity index 100% rename from LICENSE.APLv2 rename to LICENSE.Apache-2.0 diff --git a/doc/video_util_doc.h b/doc/video_util_doc.h index b45e1f4..7c5bbb3 100644 --- a/doc/video_util_doc.h +++ b/doc/video_util_doc.h @@ -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 Feature Element. + * More details on featuring your application can be found from Feature Element. * * @subsection CAPI_MEDIA_VIDEO_UTIL_FOREACH_OPERATIONS Foreach Operations *
diff --git a/packaging/capi-media-video-util.spec b/packaging/capi-media-video-util.spec index 91c71c9..81859df 100755 --- a/packaging/capi-media-video-util.spec +++ b/packaging/capi-media-video-util.spec @@ -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 diff --git a/test/video_util_test.c b/test/video_util_test.c index fe170bb..c6b341c 100644 --- a/test/video_util_test.c +++ b/test/video_util_test.c @@ -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); -- 2.7.4