This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
youys
/
ant
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
1
Code
Releases
0
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Merge pull request
#194
from keithc-ca/tar
Names end before the first NULL (not the last)
master
Stefan Bodewig
GitHub
2 years ago
parent
15ed7c87e5
048df1e3cf
commit
837eab258e
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-3
src/main/org/apache/tools/tar/TarUtils.java
+ 3
- 3
src/main/org/apache/tools/tar/TarUtils.java
View File
@@ -286,9 +286,9 @@ public class TarUtils {
final ZipEncoding encoding)
throws IOException {
int len =
length
;
for (; len
> 0; len--
) {
if (buffer[offset + len
- 1] !
= 0) {
int len =
0
;
for (; len
< length; ++len
) {
if (buffer[offset + len
] =
= 0) {
break;
}
}
Write
Preview
Loading…
Cancel
Save