diff options
Diffstat (limited to 'src/ipc/media-thumb-ipc.c')
-rwxr-xr-x | src/ipc/media-thumb-ipc.c | 8 |
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; |