From 2f3d928fe3b9ce15ebe62aae6dda48da868260c1 Mon Sep 17 00:00:00 2001 From: fredrik Date: Tue, 1 May 2007 00:08:43 +0000 Subject: [PATCH] Print proper size_t's in filelist printers. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@986 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/fnet-dc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/fnet-dc.c b/daemon/fnet-dc.c index f7d976e..b09baf5 100644 --- a/daemon/fnet-dc.c +++ b/daemon/fnet-dc.c @@ -3246,7 +3246,7 @@ static void updatehmlist(void) if(node->f.b.type == FILE_REG) { addtobuf(buf, '|'); - sprintf(numbuf, "%i", node->size); + sprintf(numbuf, "%zi", node->size); bufcat(buf, numbuf, strlen(numbuf)); } addtobuf(buf, 13); @@ -3421,7 +3421,7 @@ static void updatexmllist(void) lev++; continue; } else { - fprintf(fs, "size); + fprintf(fs, "size); if(node->f.b.hastth) { hashbuf = base32encode(node->hashtth, 24); -- 2.11.0