summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2017-07-14 00:40:42 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2017-07-17 07:02:13 (GMT)
commit6339a446a14a52712bc3228a220ae6da9f2131e5 (patch)
tree92a8de66cb8d012563bf4024bb0203147d8a1f73 /src/util
parent25b3a21bb456c0ac4f0011e2a4c33374cf38a52f (diff)
downloadlibmedia-thumbnail-6339a446a14a52712bc3228a220ae6da9f2131e5.zip
libmedia-thumbnail-6339a446a14a52712bc3228a220ae6da9f2131e5.tar.gz
libmedia-thumbnail-6339a446a14a52712bc3228a220ae6da9f2131e5.tar.bz2
[SATIZENVUL-956] change strncpy to g_strlcpyrefs/changes/97/138797/4
Change-Id: Id4108ba3e01f4d06f7fa6c235d9213fb804b3e40 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/media-thumb-db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/media-thumb-db.c b/src/util/media-thumb-db.c
index d955a46..5fdc614 100755
--- a/src/util/media-thumb-db.c
+++ b/src/util/media-thumb-db.c
@@ -58,7 +58,7 @@ int _media_thumb_get_thumb_from_db(const char *origin_path, char *thumb_path, in
}
if (sqlite3_step(stmt) == SQLITE_ROW) {
- strncpy(thumb_path, (const char *)sqlite3_column_text(stmt, 0), max_length);
+ SAFE_STRLCPY(thumb_path, (const char *)sqlite3_column_text(stmt, 0), max_length);
} else {
thumb_err("end of row [%s]", sqlite3_errmsg(db_handle));
SQLITE3_FINALIZE(stmt);