OSDN Git Service

fix bug in euc2sjis().
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 29 Jan 2001 14:44:24 +0000 (14:44 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 29 Jan 2001 14:44:24 +0000 (14:44 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@10 6a8cc165-1e22-0410-a132-eb4e3f353aba

src/header.c

index e17d2ba..9f4d95c 100644 (file)
@@ -965,7 +965,7 @@ euc2sjis(int *p1, int *p2)
     int rowoff = c1 < 0x5f ? 0x70 : 0xb0;
     int celoff = c1 % 2 ? (c2 > 0x5f ? 0x20 : 0x1f) : 0x7e;
     *p1 = ((c1 + 1) >> 1) + rowoff;
-    *p2 += celoff;
+    *p2 += celoff - 0x80;
 }
 
 void