Mercurial > hg > forks > pwpunix
diff pwplib/decterm.c @ 56:5d819ba6891c
More cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 27 May 2010 22:48:37 +0300 |
parents | 77f40a3c0095 |
children | 0f616ade936a |
line wrap: on
line diff
--- a/pwplib/decterm.c Thu May 27 20:16:08 2010 +0300 +++ b/pwplib/decterm.c Thu May 27 22:48:37 2010 +0300 @@ -130,7 +130,7 @@ &16: charset: P vs B */ -int tty_vt_dump(char*s,char*p,int x,int y) +int tty_vt_dump(u8 *s,char*p,int x,int y) { TEMPMALL(u8,tmp,pwplib.videobuf.width*pwplib.videobuf.height*16), *d=tmp,skip=0,skipy=0; @@ -251,7 +251,7 @@ memcpy(d,"\33[0m",4*sizeof(char)); /* nuo framen alkuun */ pwp_tty.att=0;d+=4; - tty_write(tmp,d-tmp); + tty_write((char *)tmp, d - tmp); TEMPFREE(tmp); return d-tmp; }