diff options
author | Jeremy Allison <jra@samba.org> | 1998-02-13 12:42:05 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-02-13 12:42:05 +0000 |
commit | 7ae78d5c9ec0afb66be26cfd25aa5762b44bcc69 (patch) | |
tree | d647dde12f779fde3886e0d7884b93a54b41d442 /source | |
parent | 4bf7cc28bf48d56abcca3b9f6fd2d6827ac87a4f (diff) | |
download | samba-7ae78d5c9ec0afb66be26cfd25aa5762b44bcc69.tar.gz samba-7ae78d5c9ec0afb66be26cfd25aa5762b44bcc69.tar.xz samba-7ae78d5c9ec0afb66be26cfd25aa5762b44bcc69.zip |
Fix for crash bug with amanda - from "Michael C. Povel" <Michael.Povel@hub.de>.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/client/clitar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/client/clitar.c b/source/client/clitar.c index 6763d221cea..6a811f41c7d 100644 --- a/source/client/clitar.c +++ b/source/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); } |