From ingham@socrates.i-pi.com  Mon Jun  5 16:34:27 2000
Return-Path: <ingham@socrates.i-pi.com>
Received: from socrates.i-pi.com (Socrates.i-pi.com [198.49.217.5])
	by habanero.picante.com (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id QAA09045
	for <gtaylor+web_gjabf053100@picante.com>; Mon, 5 Jun 2000 16:34:24 -0400
Received: (from ingham@localhost)
	by socrates.i-pi.com (8.9.3/8.9.3) id OAA03802
	for gtaylor+web_gjabf053100@picante.com; Mon, 5 Jun 2000 14:33:54 -0600 (MDT)
	(envelope-from ingham)
Date: Mon, 5 Jun 2000 14:33:54 -0600
From: Kenneth Ingham <ingham@i-pi.com>
To: gtaylor+web_gjabf053100@picante.com
Subject: Updated cartutil.c
Message-ID: <20000605143354.A3790@socrates.i-pi.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="5vNYLRcllDrimb99"
X-Mailer: Mutt 1.0.1i


--5vNYLRcllDrimb99
Content-Type: text/plain; charset=us-ascii

There was a bug in cartutil.c (for the Lexmary OptraColor 40/45)
where if it could not open the device, the error message was a core
dump.

I fixed this as well as improving the error message.

I realize that you are not the original author; however, I got my copy
from your web site.  I don't see an email address for the original
author.

Kenneth 

--5vNYLRcllDrimb99
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="cartutil.diffs"

*** cartutil.c	Mon Jun  5 14:08:10 2000
--- cartutil.c.original	Mon Jun  5 14:07:55 2000
***************
*** 8,14 ****
   */
  
  #include <stdio.h>
- #include <errno.h>
  
  char *help = {
    "\n"
--- 8,13 ----
***************
*** 194,200 ****
    
    /* open the output file */
    if ((fp = fopen(argv[1], "w")) == NULL){
!     fprintf(stderr, "%s: Can't open %s: %s\n", prog, argv[1], strerror(errno));
      exit(2);
    }
  
--- 193,199 ----
    
    /* open the output file */
    if ((fp = fopen(argv[1], "w")) == NULL){
!     fprintf(stderr, "%s: Can't open %s\n", prog, *argv[1]);
      exit(2);
    }
  

--5vNYLRcllDrimb99--


