I forgot to comment on a small thing.
> 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 <## | email@example.com
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail firstname.lastname@example.org
This archive was generated by hypermail 2b29 : Sun Apr 29 2001 - 14:03:52 PDT