--- np2/x11/dosio.c 2011/01/15 18:55:47 1.19 +++ np2/x11/dosio.c 2012/01/23 04:05:05 1.20 @@ -403,7 +403,7 @@ file_getext(const OEMCHAR *path) if (q == NULL) { q = p; } - return (char *)q; + return (OEMCHAR *)q; } void