diff options
author | Richard Sharpe <sharpe@samba.org> | 1998-09-19 04:25:10 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 1998-09-19 04:25:10 +0000 |
commit | d54c91598c24e89a999936f446be134137df5dea (patch) | |
tree | 38ad8c2a9da236726b5783c97a73482623ebd75b /source/client/clitar.c | |
parent | f74f39f45fa55c1768d6622a52c494328f22f50b (diff) | |
download | samba-d54c91598c24e89a999936f446be134137df5dea.tar.gz samba-d54c91598c24e89a999936f446be134137df5dea.tar.xz samba-d54c91598c24e89a999936f446be134137df5dea.zip |
Fixed changes in clitar.c that Jeremey noted. One change was
correct, the other needed slightly changing.
Now to test it is all OK :-)
Diffstat (limited to 'source/client/clitar.c')
-rw-r--r-- | source/client/clitar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/client/clitar.c b/source/client/clitar.c index 9cb71b10a27..e7ab1808362 100644 --- a/source/client/clitar.c +++ b/source/client/clitar.c @@ -1725,6 +1725,7 @@ static char * get_longfilename(file_info2 finfo) char *longname = malloc(namesize); char *xxx; int offset = 0, left = finfo.size; + BOOL first = True; DEBUG(5, ("Restoring a long file name: %s\n", finfo.name)); DEBUG(5, ("Len = %i\n", finfo.size)); @@ -1755,7 +1756,7 @@ static char * get_longfilename(file_info2 finfo) } - unfixtarname(longname + offset, buffer_p, MIN(TBLOCK, finfo.size),False); + unfixtarname(longname + offset, buffer_p, MIN(TBLOCK, finfo.size), first--); DEBUG(5, ("UnfixedName: %s, buffer: %s\n", longname, buffer_p)); offset += TBLOCK; |