From a3a24b9b1e4bff38a69f61e11f937cf1fb96fdcf Mon Sep 17 00:00:00 2001 From: "shingil.kang" Date: Wed, 27 Apr 2016 18:24:32 +0900 Subject: [PATCH] Fixed a bug where garbage characters follow pull/push error message Change-Id: Ia90610c467b4a175500f5a264670d905b15fd412 Signed-off-by: shingil.kang --- src/file_sync_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_sync_functions.c b/src/file_sync_functions.c index 858ce1a..e0da35f 100644 --- a/src/file_sync_functions.c +++ b/src/file_sync_functions.c @@ -322,7 +322,7 @@ int writeclose_remote(int fd, char* dstp, struct stat* st) { } if(msg.status.id != sync_okay) { - char buf[256]; + char buf[256] = {0, }; if(msg.status.id == sync_fail) { int len = ltohl(msg.status.msglen); if(len > 255) { -- 2.34.1