From 85aa57a7dde68e67d62d7c30c87d8363e1bd449e Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 4 Mar 2005 18:01:16 +0000 Subject: [PATCH] In read_iflags(), we need to set buf to an empty string. --- sender.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sender.c b/sender.c index 35955c7d..2d9c85b6 100644 --- a/sender.c +++ b/sender.c @@ -144,6 +144,8 @@ int read_iflags(int f_in, int f_out, int ndx, char *buf) exit_cleanup(RERR_PROTOCOL); } + *buf = '\0'; + if ((!(iflags & ITEM_UPDATING) || !S_ISREG(the_file_list->files[ndx]->mode)) && f_out >= 0) { write_int(f_out, ndx); write_shortint(f_out, iflags); -- 2.34.1