Skip to content
Snippets Groups Projects
Commit ad5c0b2c authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Truncate junk after tarfile end.

Rev: bin/tarfilter.pike:1.2
parent f866e9e5
Branches
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ void doit(Stdio.File in, Stdio.File out) ...@@ -29,7 +29,7 @@ void doit(Stdio.File in, Stdio.File out)
} }
if(s-"\0" == "") { if(s-"\0" == "") {
out->write(s); out->write(s);
continue; break;
} }
array a = array a =
array_sscanf(s, "%100s%8s%8s%8s%12s%12s%8s%c%100s%8s%32s%32s%8s%8s"); array_sscanf(s, "%100s%8s%8s%8s%12s%12s%8s%c%100s%8s%32s%32s%8s%8s");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment