Fixed a bug where garbage characters follow pull/push error message
authorshingil.kang <shingil.kang@samsung.com>
Wed, 27 Apr 2016 09:24:32 +0000 (18:24 +0900)
committershingil.kang <shingil.kang@samsung.com>
Fri, 29 Apr 2016 07:52:42 +0000 (16:52 +0900)
Change-Id: Ia90610c467b4a175500f5a264670d905b15fd412
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
src/file_sync_functions.c

index 858ce1a3f6635f07b6f1765904b917025eefeb88..e0da35f3bef8f7013c1a1f2ded17ad308ecb5e10 100644 (file)
@@ -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) {