Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 64279 Details for
Bug 100172
sys-libs/glibc-2.3.5 + gcc-3.4: fprintf returns wrong value
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fputs-return-len.patch
fputs-return-len.patch (text/plain), 1.06 KB, created by
SpanKY
on 2005-07-25 08:34:12 UTC
(
hide
)
Description:
fputs-return-len.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2005-07-25 08:34:12 UTC
Size:
1.06 KB
patch
obsolete
>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)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 100172
:
64225
| 64279