🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Sun, 12 Feb 1989 01:59
innocent little bug in cplus-method.c
#1680
Author: Ron Guilmette
Date: Sun, 12 Feb 1989 01:59
21 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads