From a8c17e6587e68c4330999dd408d4add1d81296bf Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 14 Feb 2011 19:37:01 -0500 Subject: fix some pointer signedness issues (this was invalid C) --- src/stdio/fputws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdio/fputws.c') diff --git a/src/stdio/fputws.c b/src/stdio/fputws.c index 9057853b..b75f95bc 100644 --- a/src/stdio/fputws.c +++ b/src/stdio/fputws.c @@ -9,7 +9,7 @@ int fputws(const wchar_t *ws, FILE *f) f->mode |= f->mode+1; - while (ws && (l = wcsrtombs(buf, (void*)&ws, sizeof buf, 0))+1 > 1) + while (ws && (l = wcsrtombs((void *)buf, (void*)&ws, sizeof buf, 0))+1 > 1) if (__fwritex(buf, l, f) < l) { FUNLOCK(f); return -1; -- cgit v1.2.1