From 3b3fbd56329a3327fe20b556157c381cb84ef331 Mon Sep 17 00:00:00 2001 From: Vitaliy Cherepanov Date: Wed, 8 Apr 2015 13:29:22 +0300 Subject: [PATCH] [FIX] orientation value in MSG_SCREENSHOT Change-Id: Iab3d7976e685fdd5308242ab036e4a9fc92fd79e Signed-off-by: Vitaliy Cherepanov --- helper/dacapture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/dacapture.c b/helper/dacapture.c index a92a009..2acc80d 100755 --- a/helper/dacapture.c +++ b/helper/dacapture.c @@ -374,7 +374,7 @@ int captureScreen() PACK_COMMON_END('d', 0, 0, 0); PACK_SCREENSHOT(dstpath, getOrientation()); SET_MSG_LEN(); - log.length = GET_MSG_LEN() + MSG_LEN_OFFSET + strlen(dstpath) + 1; + log.length = GET_MSG_LEN() + MSG_HDR_LEN + strlen(dstpath) + 1; /* send all message */ printLog(&log, MSG_IMAGE); -- 2.7.4