home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
3
/
3011
< prev
next >
Wrap
Internet Message Format
|
1991-03-06
|
692b
From: mark@unix386.Convergent.COM (Mark Nudelman)
Newsgroups: alt.sources
Subject: less, patch 1
Message-ID: <6501@unix386.Convergent.COM>
Date: 7 Mar 91 00:51:12 GMT
As a number of people have pointed out, a bug in less causes
a core dump when "less -?" is invoked. Here is a quick fix
in ifile.c:
*** ifile.c.170 Wed Mar 6 16:15:03 1991
--- ifile.c.171 Wed Mar 6 16:15:08 1991
***************
*** 153,158 ****
--- 153,160 ----
get_filename(ifile)
IFILE ifile;
{
+ if (ifile == NULL)
+ return (NULL);
return (int_ifile(ifile)->h_filename);
}
My apologies for any inconvenience this may have caused.
Mark Nudelman
{uunet,sun,decwrl,hplabs}!pyramid!ctnews!unix386!mark