Fix SVACE defect 84/75784/1 accepted/tizen/common/20160704.145321 accepted/tizen/ivi/20160704.090634 accepted/tizen/mobile/20160704.090541 accepted/tizen/tv/20160704.090521 accepted/tizen/wearable/20160704.090421 submit/tizen/20160704.004002
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 21 Jun 2016 10:51:55 +0000 (19:51 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 21 Jun 2016 10:52:13 +0000 (19:52 +0900)
[Version] Release 0.1.19
[Profile] Common
[ssue Type] SVACE

Change-Id: I6230e311bb09af43f70e1db86b6a0b93b289ef8e

packaging/capi-media-wav-player.spec
test/wav_player_test.c

index fb7ad7a..5588d45 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-wav-player
 Summary:    A wav player library in Tizen C API
-Version:    0.1.18
+Version:    0.1.19
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index c18747d..0a98d86 100644 (file)
@@ -100,7 +100,8 @@ int main(int argc, char**argv)
 
                switch (opt) {
                case 'f':
-                       strcpy(file_path, optarg);
+                       strncpy(file_path, optarg, FILE_PATH_MAX - 1);
+                       file_path[FILE_PATH_MAX - 1] = '\0';
                        break;
                case 'i':
                        iterate = atoi(optarg);