Re: scanimage -T using Purify...

From: Petter Reinholdtsen (pere@hungry.com)
Date: Sun Apr 29 2001 - 14:06:35 PDT

  • Next message: Petter Reinholdtsen: "SANE protocol error ?"

    I forgot to comment on a small thing.

    [Henning Meier-Geinitz]
    > umax.c:
    > len = strlen (config_line);
    > if (config_line[len - 1] == '\n')
    > {
    > config_line[--len] = '\0';
    > }
    >
    > What happens if len==0? Similar things are probably in many backends.

    The real fix is to remove this code from umax.c, plustek.c and
    artec.c, as this functionallity was moved into sanei_config_read() and
    extended quite a bit to work on OS/2. No need for the backends to
    remove the trailing newline when reading the config file.

    -- 
    ##>  Petter Reinholdtsen  <##  |  pere@td.org.uit.no
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Sun Apr 29 2001 - 14:03:52 PDT