🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Leila Burrell-Davis Thu, 06 Aug 1992 12:40
Bug in nl.c in textutils 1.3
#204
Author: Leila Burrell-Davis
Date: Thu, 06 Aug 1992 12:40
35 lines
1699 bytes
Hi,

I had a problem compiling nl.c on a Sequent Symmetry S81 running Dynix
v3.0.17.9 (BSD 4.2 type machine).

I got an undefined symbol 'memset'. Looking at system.h I see there's:
	#define bzero(s, n) memset ((s), 0, (n))
for USG and STDC_HEADERS (not defined on my machine), so I think the
appropriate patch is as appended to this message.

Leila
--
Leila Burrell-Davis, Computing Service, University of Sussex, Brighton, UK
Tel:   +44 273 678390              Fax:   +44 273 678470
Email: leilabd@syma.sussex.ac.uk  (JANET: leilabd@uk.ac.sussex.syma)
---
*** nl.c.dist	Thu Aug  6 13:26:15 1992
--- nl.c	Thu Aug  6 13:28:04 1992
***************
*** 270,276 ****
    /* Initialize the printf format for unnumbered lines. */
    c = strlen (separator_str);
    print_no_line_fmt = xmalloc (lineno_width + c + 1);
!   memset (print_no_line_fmt, ' ', lineno_width + c);
    print_no_line_fmt[lineno_width + c] = '\0';
  
    line_no = page_start;
--- 270,276 ----
    /* Initialize the printf format for unnumbered lines. */
    c = strlen (separator_str);
    print_no_line_fmt = xmalloc (lineno_width + c + 1);
!   bzero (print_no_line_fmt, lineno_width + c);
    print_no_line_fmt[lineno_width + c] = '\0';
  
    line_no = page_start;
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