OSDN Git Service

* src/lhext.c (cmd_extract): stream position was adjusted by wrong value.
authorKoji Arai <jca02266@gmail.com>
Fri, 22 Aug 2008 16:02:44 +0000 (01:02 +0900)
committerKoji Arai <jca02266@gmail.com>
Fri, 22 Aug 2008 16:03:18 +0000 (01:03 +0900)
* src/lhext.c (extract_one): fixed misspelling.

ChangeLog
src/lhext.c

index 092c434..94d55bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-23  Koji Arai  <arai@users.sourceforge.jp>
+
+       * src/lhext.c (cmd_extract): stream position was adjusted by wrong value.
+
+       * src/lhext.c (extract_one): fixed misspelling.
+
 2008-08-04  Koji Arai  <arai@users.sourceforge.jp>
 
        * src/larc.c (decode_start_lz5): should use the dtext[] instead of the text[].
index c4a275c..dcb99fc 100644 (file)
@@ -262,7 +262,7 @@ extract_one(afp, hdr)
     /* 1999.4.30 t.okamoto */
     for (method = 0;; method++) {
         if (methods[method] == NULL) {
-            error("Unknown method \"%.*s\"; \"%s\" will be skiped ...",
+            error("Unknown method \"%.*s\"; \"%s\" will be skipped ...",
                   5, hdr->method, name);
             return read_size;
         }
@@ -276,7 +276,7 @@ extract_one(afp, hdr)
 #if 0
         for (method = 0;; method++) {
             if (methods[method] == NULL) {
-                error("Unknown method \"%.*s\"; \"%s\" will be skiped ...",
+                error("Unknown method \"%.*s\"; \"%s\" will be skipped ...",
                       5, hdr->method, name);
                 return read_size;
             }
@@ -532,7 +532,7 @@ cmd_extract()
                 /* when error occurred in extract_one(), should adjust
                    point of file stream */
                 if (pos != -1 && afp != stdin)
-                    fseeko(afp, pos + hdr.packed_size - read_size, SEEK_SET);
+                    fseeko(afp, pos + hdr.packed_size, SEEK_SET);
                 else {
                     off_t i = hdr.packed_size - read_size;
                     while (i--) fgetc(afp);