diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 6763d221cea..6a811f41c7d 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -111,7 +111,7 @@ static void writetarheader(int f, char *aname, int size, time_t mtime, memset(b, 0, l+TBLOCK+100); fixtarname(b, aname, l+1); i = strlen(b)+1; - dotarbuf(f, b, TBLOCK*((i+(TBLOCK-1)/TBLOCK))); + dotarbuf(f, b, TBLOCK*(((i-1)/TBLOCK)+1)); free(b); }