Article View: gnu.g++.bug
Article #1680innocent little bug in cplus-method.c
From: Ron Guilmette
Date: Sun, 12 Feb 1989 01:59
Date: Sun, 12 Feb 1989 01:59
21 lines
1120 bytes
1120 bytes
I have been doing some hacking on the file cplus-method.c from the g++
1.32.0 distribution and I noticed that the OB_PUTS() macro is defined
as follows:
# define OB_PUTS(S) (sprintf (inline_bufp, S), inline_bufp += sizeof (S) - 1)
This is clearly wrong. It should read:
# define OB_PUTS(S) (sprintf (inline_bufp, S), inline_bufp += strlen (S))
Also, just for consistancy, you may want to re-do the definition for:
# define OB_PUTC2(C1,C2) (OB_PUTC (C1), OB_PUTC (C2))
Regards,
// Ron Guilmette - MCC - Experimental (parallel) Systems Kit Project
// 3500 West Balcones Center Drive, Austin, TX 78759 - (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg
Technical Details
Message-ID:
<8902120159.AA25816@riunite.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: innocent little bug in cplus-method.c Message-ID: <8902120159.AA25816@riunite.aca.mcc.com> Date: 12 Feb 89 01:59:56 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21