OSDN Git Service
(root)
/
lha
/
lha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af24c93
)
* src/lhext.c (cmd_extract): discard useless fseek() calling (for MinGW).
author
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sun, 26 May 2002 14:32:43 +0000
(14:32 +0000)
committer
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sun, 26 May 2002 14:32:43 +0000
(14:32 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@117
6a8cc165
-1e22-0410-a132-
eb4e3f353aba
src/lhext.c
patch
|
blob
|
history
diff --git
a/src/lhext.c
b/src/lhext.c
index
0041c86
..
cf0f90d
100644
(file)
--- a/
src/lhext.c
+++ b/
src/lhext.c
@@
-427,7
+427,10
@@
cmd_extract()
if (need_file(hdr.name)) {
pos = ftell(afp);
extract_one(afp, &hdr);
+#if 0 /* On MinGW, if afp == stdin, fseek() will succeed.
+ but next getc(afp) return EOF */
fseek(afp, pos + hdr.packed_size, SEEK_SET);
+#endif
} else {
if (afp != stdin)
fseek(afp, hdr.packed_size, SEEK_CUR);