[uClibc-cvs] uClibc/libc/stdio stdio.c,1.72,1.73
Manuel Novoa III
mjn3 at uclibc.org
Wed Nov 19 07:21:19 UTC 2003
- Previous message: [uClibc-cvs] uClibc/extra/Configs Config.alpha, 1.14, 1.15 Config.arm, 1.39, 1.40 Config.cris, 1.9, 1.10 Config.e1, 1.5, 1.6 Config.h8300, 1.17, 1.18 Config.i386, 1.36, 1.37 Config.i960, 1.13, 1.14 Config.in.arch, 1.11, 1.12 Config.m68k, 1.34, 1.35 Config.microblaze, 1.4, 1.5 Config.sh, 1.40, 1.41 Config.v850, 1.6, 1.7
- Next message: [uClibc-cvs] uClibc/libc/string Makefile,1.56,1.57
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/uClibc/libc/stdio
In directory winder:/tmp/cvs-serv6165
Modified Files:
stdio.c
Log Message:
Fix the return value for fputs when passed an empty string.
Indirectly detected by gmp-4.1.2 self-tests and reported by
"Peter S. Mazinger" <ps.m at gmx.net>.
Index: stdio.c
===================================================================
RCS file: /var/cvs/uClibc/libc/stdio/stdio.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- stdio.c 22 Sep 2003 03:07:51 -0000 1.72
+++ stdio.c 19 Nov 2003 07:21:10 -0000 1.73
@@ -77,6 +77,9 @@
* Minor thread locking optimizations to avoid some unnecessary locking.
* Remove the explicit calls to __builtin_* funcs, as we really need to
* implement a more general solution.
+ *
+ * Nov 17, 2003
+ * Fix the return value for fputs when passed an empty string.
*/
/* Before we include anything, convert L_ctermid to L_ctermid_function
@@ -2862,7 +2865,7 @@
#ifdef __STDIO_WIDE
- return (fwrite_unlocked(s, n, (size_t) 1, stream) > 0) ? n : EOF;
+ return (fwrite_unlocked(s, (size_t) 1, n, stream) == n) ? n : EOF;
#else /* __STDIO_WIDE */
- Previous message: [uClibc-cvs] uClibc/extra/Configs Config.alpha, 1.14, 1.15 Config.arm, 1.39, 1.40 Config.cris, 1.9, 1.10 Config.e1, 1.5, 1.6 Config.h8300, 1.17, 1.18 Config.i386, 1.36, 1.37 Config.i960, 1.13, 1.14 Config.in.arch, 1.11, 1.12 Config.m68k, 1.34, 1.35 Config.microblaze, 1.4, 1.5 Config.sh, 1.40, 1.41 Config.v850, 1.6, 1.7
- Next message: [uClibc-cvs] uClibc/libc/string Makefile,1.56,1.57
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the uClibc-cvs
mailing list