From 82d7cf38f826943b154c611855b1f20820d5062c Mon Sep 17 00:00:00 2001 From: Nikita Kalyazin Date: Wed, 1 Jan 2014 23:16:56 +0400 Subject: [PATCH] [FIX] empty string in sprintf Change-Id: I040875d53be7414cde44cac913e0610547827313 Signed-off-by: Nikita Kalyazin --- daemon/da_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/da_protocol.c b/daemon/da_protocol.c index 7604805..44fb4dd 100644 --- a/daemon/da_protocol.c +++ b/daemon/da_protocol.c @@ -1037,7 +1037,7 @@ static int process_msg_get_screenshot(struct msg_buf_t *msg_control) // send config message to target process sendlog.type = MSG_CAPTURE_SCREEN; - sendlog.length = sprintf(sendlog.data, ""); + sendlog.length = 0; log_len = sizeof(sendlog.type) + sizeof(sendlog.length) + sendlog.length; for (target_index = 0; target_index < MAX_TARGET_COUNT; target_index++) { -- 2.7.4