Index: libio/iofputs.c =================================================================== RCS file: /cvs/glibc/libc/libio/iofputs.c,v retrieving revision 1.18 diff -u -p -r1.18 iofputs.c --- libio/iofputs.c 29 Aug 2003 19:58:27 -0000 1.18 +++ libio/iofputs.c 25 Jul 2005 14:36:54 -0000 @@ -40,7 +40,7 @@ _IO_fputs (str, fp) _IO_acquire_lock (fp); if ((_IO_vtable_offset (fp) != 0 || _IO_fwide (fp, -1) == -1) && _IO_sputn (fp, str, len) == len) - result = 1; + result = len; _IO_release_lock (fp); return result; } Index: libio/iofputs_u.c =================================================================== RCS file: /cvs/glibc/libc/libio/iofputs_u.c,v retrieving revision 1.5 diff -u -p -r1.5 iofputs_u.c --- libio/iofputs_u.c 4 Aug 2002 20:33:33 -0000 1.5 +++ libio/iofputs_u.c 25 Jul 2005 14:36:54 -0000 @@ -38,7 +38,7 @@ fputs_unlocked (str, fp) int result = EOF; CHECK_FILE (fp, EOF); if (_IO_fwide (fp, -1) == -1 && _IO_sputn (fp, str, len) == len) - result = 1; + result = len; return result; } libc_hidden_def (fputs_unlocked)