summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-02-13 12:40:23 +0000
committerJeremy Allison <jra@samba.org>1998-02-13 12:40:23 +0000
commita093e73d946922b32d1d17c1f21b803637b362a7 (patch)
treecdf87a885ad546e50d4feca116f769704dee7b93 /source3
parent712310748085331b61034c4c3a8a444845d2ef63 (diff)
downloadsamba-a093e73d946922b32d1d17c1f21b803637b362a7.tar.gz
samba-a093e73d946922b32d1d17c1f21b803637b362a7.tar.bz2
samba-a093e73d946922b32d1d17c1f21b803637b362a7.zip
Fix for crash bug with amanda - from "Michael C. Povel" <Michael.Povel@hub.de>.
Jeremy. (This used to be commit 735adfa01b7b2e540bb5476a77d6b689ca70852a)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/clitar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 6763d221ce..6a811f41c7 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);
}