From: arai Date: Mon, 29 Jan 2001 14:44:24 +0000 (+0000) Subject: fix bug in euc2sjis(). X-Git-Url: http://git.sourceforge.jp/view?p=lha%2Flha.git;a=commitdiff_plain;h=6ffd8342b79ec424ed209c6fd6039a05a58838b4 fix bug in euc2sjis(). git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@10 6a8cc165-1e22-0410-a132-eb4e3f353aba --- diff --git a/src/header.c b/src/header.c index e17d2ba..9f4d95c 100644 --- a/src/header.c +++ b/src/header.c @@ -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