summaryrefslogtreecommitdiff
path: root/src/stdio/fputws.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-14 19:37:01 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-14 19:37:01 -0500
commita8c17e6587e68c4330999dd408d4add1d81296bf (patch)
tree6764172bcc04e4e0b8c50f531244d3d8df696187 /src/stdio/fputws.c
parentc247ebdd989365d20da3ce41fdeb2002e0a1ba13 (diff)
downloadmusl-a8c17e6587e68c4330999dd408d4add1d81296bf.tar.gz
musl-a8c17e6587e68c4330999dd408d4add1d81296bf.tar.bz2
musl-a8c17e6587e68c4330999dd408d4add1d81296bf.tar.xz
musl-a8c17e6587e68c4330999dd408d4add1d81296bf.zip
fix some pointer signedness issues (this was invalid C)
Diffstat (limited to 'src/stdio/fputws.c')
-rw-r--r--src/stdio/fputws.c2
1 files changed, 1 insertions, 1 deletions
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;