mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
Fix for crash bug with amanda - from "Michael C. Povel" <Michael.Povel@hub.de>.
Jeremy. (This used to be commit 735adfa01b7b2e540bb5476a77d6b689ca70852a)
This commit is contained in:
parent
7123107480
commit
a093e73d94
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user