diff options
| author | Jeremy Allison <jra@samba.org> | 1998-02-13 12:40:23 +0000 |
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 1998-02-13 12:40:23 +0000 |
| commit | a093e73d946922b32d1d17c1f21b803637b362a7 (patch) | |
| tree | cdf87a885ad546e50d4feca116f769704dee7b93 | |
| parent | 712310748085331b61034c4c3a8a444845d2ef63 (diff) | |
| download | samba-a093e73d946922b32d1d17c1f21b803637b362a7.tar.gz samba-a093e73d946922b32d1d17c1f21b803637b362a7.tar.xz samba-a093e73d946922b32d1d17c1f21b803637b362a7.zip | |
Fix for crash bug with amanda - from "Michael C. Povel" <Michael.Povel@hub.de>.
Jeremy.
(This used to be commit 735adfa01b7b2e540bb5476a77d6b689ca70852a)
| -rw-r--r-- | source3/client/clitar.c | 2 |
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); } |
