kopia lustrzana https://gitlab.com/sane-project/website
125 wiersze
4.7 KiB
HTML
125 wiersze
4.7 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>sane-devel: Re: scanimage -T using Purify...</TITLE>
|
||
|
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@rauch-domain.de)">
|
||
|
<META NAME="Subject" CONTENT="Re: scanimage -T using Purify...">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
|
<H1>Re: scanimage -T using Purify...</H1>
|
||
|
<!-- received="Tue May 1 12:26:16 2001" -->
|
||
|
<!-- isoreceived="20010501192616" -->
|
||
|
<!-- sent="Tue, 01 May 2001 21:36:04 +0200" -->
|
||
|
<!-- isosent="20010501193604" -->
|
||
|
<!-- name="Oliver Rauch" -->
|
||
|
<!-- email="oliver.rauch@rauch-domain.de" -->
|
||
|
<!-- subject="Re: scanimage -T using Purify..." -->
|
||
|
<!-- id="3AEF1024.BE073366@rauch-domain.de" -->
|
||
|
<!-- inreplyto="20010501211550.B11945@vortex.swb.de" -->
|
||
|
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@rauch-domain.de?Subject=Re:%20scanimage%20-T%20using%20Purify...&In-Reply-To=<3AEF1024.BE073366@rauch-domain.de>"><EM>oliver.rauch@rauch-domain.de</EM></A>)<BR>
|
||
|
<STRONG>Date:</STRONG> Tue May 01 2001 - 12:36:04 PDT
|
||
|
<P>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0015.html">Karsten Festag: "Re: [dev] New and updated backends"</A>
|
||
|
<UL>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0013.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
|
||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0013.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0121.html">Petter Reinholdtsen: "Re: scanimage -T using Purify..."</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#14">[ date ]</A>
|
||
|
<A HREF="index.html#14">[ thread ]</A>
|
||
|
<A HREF="subject.html#14">[ subject ]</A>
|
||
|
<A HREF="author.html#14">[ author ]</A>
|
||
|
</UL>
|
||
|
<HR NOSHADE><P>
|
||
|
<!-- body="start" -->
|
||
|
<P>
|
||
|
Henning Meier-Geinitz wrote:
|
||
|
<BR>
|
||
|
<P><EM>> >
|
||
|
</EM><BR>
|
||
|
<EM>> > if I see it right sanei_config_read() does not change
|
||
|
</EM><BR>
|
||
|
<EM>> > the return buffer when the line is "\n".
|
||
|
</EM><BR>
|
||
|
<EM>> > This also should be changed (buffer[0]=0).
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> "\n" is white space so
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> len = strlen( str);
|
||
|
</EM><BR>
|
||
|
<EM>> while( (0 < len) && (isspace( str[--len])) )
|
||
|
</EM><BR>
|
||
|
<EM>> str[len] = '\0';
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> should remove it. Or am I wrong?
|
||
|
</EM><BR>
|
||
|
<P>Sorry. Everything is ok.
|
||
|
<BR>
|
||
|
I did not see that the line is read directly into the the return buffer.
|
||
|
<BR>
|
||
|
So everything should be ok.
|
||
|
<BR>
|
||
|
<P><EM>> > if (len && (config_line[len - 1] == '\n'))
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> Yes, but why are you using this? Isn't that already done in
|
||
|
</EM><BR>
|
||
|
<EM>> sanei_config_read?
|
||
|
</EM><BR>
|
||
|
Alread removed in my backend version. I will apply this to CVS when some
|
||
|
<BR>
|
||
|
other changes are finished.
|
||
|
<BR>
|
||
|
<P>Bye
|
||
|
<BR>
|
||
|
Oliver
|
||
|
<BR>
|
||
|
<P><PRE>
|
||
|
--
|
||
|
Homepage: <A HREF="http://www.rauch-domain.de">http://www.rauch-domain.de</A>
|
||
|
sane-umax: <A HREF="http://www.rauch-domain.de/sane-umax">http://www.rauch-domain.de/sane-umax</A>
|
||
|
xsane: <A HREF="http://www.xsane.org">http://www.xsane.org</A>
|
||
|
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@rauch-domain.de?Subject=Re:%20scanimage%20-T%20using%20Purify...&In-Reply-To=<3AEF1024.BE073366@rauch-domain.de>">Oliver.Rauch@rauch-domain.de</A>
|
||
|
<P>--
|
||
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
||
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20scanimage%20-T%20using%20Purify...&In-Reply-To=<3AEF1024.BE073366@rauch-domain.de>">majordomo@mostang.com</A>
|
||
|
</PRE>
|
||
|
<P><!-- body="end" -->
|
||
|
<HR NOSHADE>
|
||
|
<UL>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0015.html">Karsten Festag: "Re: [dev] New and updated backends"</A>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0013.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
|
||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0013.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0121.html">Petter Reinholdtsen: "Re: scanimage -T using Purify..."</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#14">[ date ]</A>
|
||
|
<A HREF="index.html#14">[ thread ]</A>
|
||
|
<A HREF="subject.html#14">[ subject ]</A>
|
||
|
<A HREF="author.html#14">[ author ]</A>
|
||
|
</UL>
|
||
|
<!-- trailer="footer" -->
|
||
|
<HR NOSHADE>
|
||
|
<P>
|
||
|
<SMALL>
|
||
|
<EM>
|
||
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
||
|
: <EM>Tue May 01 2001 - 12:26:34 PDT</EM>
|
||
|
</EM>
|
||
|
</SMALL>
|
||
|
</BODY>
|
||
|
</HTML>
|