summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/open_wmemstream.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-04-03 03:11:54 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-04-03 03:11:54 +0000
commitc48399efb6fca7feb309af7e9bd286ed7bbad032 (patch)
tree604edaa5b8583c4c4c87be2486025c43c5fc4916 /lib/libc/stdio/open_wmemstream.c
parent646769d49912dfdaec2099e72c3a102aa8751ba9 (diff)
Set the stream orientation in open_{,w}memstream().
Check it in the regress test ok mpi@
Diffstat (limited to 'lib/libc/stdio/open_wmemstream.c')
-rw-r--r--lib/libc/stdio/open_wmemstream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/open_wmemstream.c b/lib/libc/stdio/open_wmemstream.c
index 2b8677c3b6a..4ba4cfdc1b5 100644
--- a/lib/libc/stdio/open_wmemstream.c
+++ b/lib/libc/stdio/open_wmemstream.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: open_wmemstream.c,v 1.1 2013/03/27 15:06:25 mpi Exp $ */
+/* $OpenBSD: open_wmemstream.c,v 1.2 2013/04/03 03:11:53 guenther Exp $ */
/*
* Copyright (c) 2011 Martin Pieuchot <mpi@openbsd.org>
@@ -163,6 +163,7 @@ open_wmemstream(wchar_t **pbuf, size_t *psize)
fp->_write = wmemstream_write;
fp->_seek = wmemstream_seek;
fp->_close = wmemstream_close;
+ _SET_ORIENTATION(fp, 1);
return (fp);
}