[FIX] empty string in sprintf 15/14615/7
authorNikita Kalyazin <nkalyazin@gmail.com>
Wed, 1 Jan 2014 19:16:56 +0000 (23:16 +0400)
committerNikita Kalyazin <nkalyazin@gmail.com>
Sat, 18 Jan 2014 10:59:40 +0000 (14:59 +0400)
Change-Id: I040875d53be7414cde44cac913e0610547827313
Signed-off-by: Nikita Kalyazin <nkalyazin@gmail.com>
daemon/da_protocol.c

index 7604805..44fb4dd 100644 (file)
@@ -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++) {