summaryrefslogtreecommitdiff
path: root/src/ipc/media-thumb-ipc.c
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2018-02-09 08:24:13 +0900
committerMinje Ahn <minje.ahn@samsung.com>2018-02-09 08:24:13 +0900
commit9c2733535f7757020ec5b8414f4ced00106a866d (patch)
treeb76a6a367667a010e99f5049473d3872fd0fa05c /src/ipc/media-thumb-ipc.c
parent7e587dddbafbed4f8b2acbdac370280abb818c9c (diff)
downloadlibmedia-thumbnail-9c2733535f7757020ec5b8414f4ced00106a866d.tar.gz
libmedia-thumbnail-9c2733535f7757020ec5b8414f4ced00106a866d.tar.bz2
libmedia-thumbnail-9c2733535f7757020ec5b8414f4ced00106a866d.zip
Remove missing code
Change-Id: I40c232748cd9302adcecaf90c9c48c28f767ba38 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/ipc/media-thumb-ipc.c')
-rwxr-xr-xsrc/ipc/media-thumb-ipc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/ipc/media-thumb-ipc.c b/src/ipc/media-thumb-ipc.c
index 68cddff..93c87c5 100755
--- a/src/ipc/media-thumb-ipc.c
+++ b/src/ipc/media-thumb-ipc.c
@@ -390,16 +390,8 @@ int _media_thumb_request(int msg_type, const char *origin_path, char *thumb_path
req_msg.msg_type = msg_type;
req_msg.uid = uid;
SAFE_STRLCPY(req_msg.org_path, origin_path, sizeof(req_msg.org_path));
- req_msg.origin_path_size = strlen(req_msg.org_path) + 1;
- req_msg.dest_path_size = strlen(req_msg.dst_path) + 1;
req_msg.thumb_size = 0;
- if (req_msg.origin_path_size > MAX_PATH_SIZE || req_msg.dest_path_size > MAX_PATH_SIZE) {
- thumb_err("path's length exceeds %d", MAX_PATH_SIZE);
- close(sock);
- return MS_MEDIA_ERR_INVALID_PARAMETER;
- }
-
unsigned char *buf = NULL;
int buf_size = 0;
int header_size = 0;