Re: scanimage -T using Purify...

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Tue May 01 2001 - 12:36:04 PDT

  • Next message: Karsten Festag: "Re: [dev] New and updated backends"

    Henning Meier-Geinitz wrote:

    > >
    > > if I see it right sanei_config_read() does not change
    > > the return buffer when the line is "\n".
    > > This also should be changed (buffer[0]=0).
    >
    > "\n" is white space so
    >
    > len = strlen( str);
    > while( (0 < len) && (isspace( str[--len])) )
    > str[len] = '\0';
    >
    > should remove it. Or am I wrong?

    Sorry. Everything is ok.
    I did not see that the line is read directly into the the return buffer.
    So everything should be ok.

    > > if (len && (config_line[len - 1] == '\n'))
    >
    > Yes, but why are you using this? Isn't that already done in
    > sanei_config_read?
    Alread removed in my backend version. I will apply this to CVS when some
    other changes are finished.

    Bye
    Oliver

    -- 
    Homepage:	http://www.rauch-domain.de
    sane-umax:	http://www.rauch-domain.de/sane-umax
    xsane:		http://www.xsane.org
    E-Mail:		mailto:Oliver.Rauch@rauch-domain.de
    

    -- 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 : Tue May 01 2001 - 12:26:34 PDT