2 files changed, 4 insertions(+), 4 deletions(-)
M it.c
M mod.c
M it.c => it.c +2 -2
@@ 3,12 3,12 @@
int
tagit(Tagctx *ctx)
{
- char d[4+26+1], o[26*UTFmax+1];
+ uchar d[4+26+1], o[26*2+1];
if(ctx->read(ctx, d, 4+26) != 4+26 || memcmp(d, "IMPM", 4) != 0)
return -1;
d[4+26] = 0;
- if(cp437toutf8(o, sizeof(o), d+4, 26) > 0)
+ if(iso88591toutf8(o, sizeof(o), d+4, 26) > 0)
txtcb(ctx, Ttitle, "", o);
return 0;
M mod.c => mod.c +2 -2
@@ 25,7 25,7 @@ static char *variants[] =
int
tagmod(Tagctx *ctx)
{
- char d[20], o[20*UTFmax+1];
+ uchar d[20], o[20*2+1];
int i;
if(ctx->seek(ctx, 1080, 0) != 1080)
@@ 42,7 42,7 @@ tagmod(Tagctx *ctx)
return -1;
if(ctx->read(ctx, d, 20) != 20)
return -1;
- if(cp437toutf8(o, sizeof(o), d, 20) > 0)
+ if(iso88591toutf8(o, sizeof(o), d, 20) > 0)
txtcb(ctx, Ttitle, "", o);
return 0;