projects
/
profile
/
mobile
/
apps
/
native
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
989114e
)
Fix SVACE issue
83/151483/1
author
Ravi Kiran K N
<ravi.kiran@samsung.com>
Thu, 21 Sep 2017 05:14:55 +0000
(10:44 +0530)
committer
Ravi Kiran K N
<ravi.kiran@samsung.com>
Thu, 21 Sep 2017 05:14:55 +0000
(10:44 +0530)
Change-Id: I5b3cf3498b868a1788db969c74f873f47bcad3e4
Signed-off-by: Ravi Kiran K N <ravi.kiran@samsung.com>
src/common/mp-util.c
patch
|
blob
|
history
diff --git
a/src/common/mp-util.c
b/src/common/mp-util.c
index
05c909f
..
4c07b8c
100644
(file)
--- a/
src/common/mp-util.c
+++ b/
src/common/mp-util.c
@@
-1292,7
+1292,7
@@
char *mp_util_get_file_name_from_file_path(const char *szFilePath)
szFile = calloc(1, strlen(szTitleName) + 1);
if (szFile) {
- strncpy(szFile, szTitleName, strlen(szTitleName));
+ strncpy(szFile, szTitleName, strlen(szTitleName)
+ 1
);
}
return szFile;
@@
-1369,7
+1369,7
@@
bool mp_util_get_icon_path_from_thumbnail(const char *szMediaURL,
for (nCount = 0; nCount < 3; nCount++) {
memset(szCheckFilePath, 0, nOutputLen);
- strncpy(szCheckFilePath, szMediaURL, nStrLength);
+ strncpy(szCheckFilePath, szMediaURL, nStrLength
+ 1
);
strncat(szCheckFilePath, szExtWildkey[nCount], 5);
VideoLogWarning("%s", szCheckFilePath);