🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #204

Bug in nl.c in textutils 1.3

#204
From: 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;
Technical Details
Message-ID: <7042.9208061240@syma.sussex.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!syma.SUssex.ac.UK!leilabd

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!syma.SUssex.ac.UK!leilabd
From: leilabd@syma.SUssex.ac.UK (Leila Burrell-Davis)
Subject: Bug in nl.c in textutils 1.3
Message-ID: <7042.9208061240@syma.sussex.ac.uk>
Sender: gnulists@ai.mit.edu
Organization: University of Sussex Computing Service
Distribution: gnu
Date: Thu, 6 Aug 1992 12:40:09 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 38