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 >
Internet Message Format  |  1991-03-06  |  692b

  1. From: mark@unix386.Convergent.COM (Mark Nudelman)
  2. Newsgroups: alt.sources
  3. Subject: less, patch 1
  4. Message-ID: <6501@unix386.Convergent.COM>
  5. Date: 7 Mar 91 00:51:12 GMT
  6.  
  7. As a number of people have pointed out, a bug in less causes
  8. a core dump when "less -?" is invoked.  Here is a quick fix
  9. in ifile.c:
  10.  
  11. *** ifile.c.170    Wed Mar  6 16:15:03 1991
  12. --- ifile.c.171    Wed Mar  6 16:15:08 1991
  13. ***************
  14. *** 153,158 ****
  15. --- 153,160 ----
  16.   get_filename(ifile)
  17.       IFILE ifile;
  18.   {
  19. +     if (ifile == NULL)
  20. +         return (NULL);
  21.       return (int_ifile(ifile)->h_filename);
  22.   }
  23.   
  24. My apologies for any inconvenience this may have caused.
  25.  
  26. Mark Nudelman
  27. {uunet,sun,decwrl,hplabs}!pyramid!ctnews!unix386!mark
  28.