[gnu.g++.bug] innocent little bug in cplus-method.c

rfg@MCC.COM (Ron Guilmette) (02/12/89)

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