kopia lustrzana https://gitlab.com/sane-project/website
135 wiersze
4.9 KiB
HTML
135 wiersze
4.9 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 11:21:06 2001" -->
|
|
<!-- isoreceived="20010501182106" -->
|
|
<!-- sent="Tue, 01 May 2001 20:23:01 +0200" -->
|
|
<!-- isosent="20010501182301" -->
|
|
<!-- name="Oliver Rauch" -->
|
|
<!-- email="oliver.rauch@rauch-domain.de" -->
|
|
<!-- subject="Re: scanimage -T using Purify..." -->
|
|
<!-- id="3AEEFF05.EB1091EF@rauch-domain.de" -->
|
|
<!-- inreplyto="20010429165603.A31678@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=<3AEEFF05.EB1091EF@rauch-domain.de>"><EM>oliver.rauch@rauch-domain.de</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Tue May 01 2001 - 11:23:01 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0012.html">Henning Meier-Geinitz: "Re: New backend: UMAX 1220P sane'ification take 1"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0010.html">Henning Meier-Geinitz: "Re: [dev] Problems with dynamic loading on AIX"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0013.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0013.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#11">[ date ]</A>
|
|
<A HREF="index.html#11">[ thread ]</A>
|
|
<A HREF="subject.html#11">[ subject ]</A>
|
|
<A HREF="author.html#11">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Henning Meier-Geinitz wrote:
|
|
<BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Ok, if we have a str containing "\n" (empty line), len
|
|
</EM><BR>
|
|
<EM>> will be 1 and str[--len] is '\n' and after that len = 0. Next step:
|
|
</EM><BR>
|
|
<EM>> len is 0, --len is -1 --> str[-1] !
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Something like
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> while((len > 0) && (isspace(str[--len])))
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> should fix this. Petter, can you check this with purify?
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<P>if I see it right sanei_config_read() does not change
|
|
<BR>
|
|
the return buffer when the line is "\n".
|
|
<BR>
|
|
This also should be changed (buffer[0]=0).
|
|
<BR>
|
|
<P><P><EM>> umax.c:
|
|
</EM><BR>
|
|
<EM>> len = strlen (config_line);
|
|
</EM><BR>
|
|
<EM>> if (config_line[len - 1] == '\n')
|
|
</EM><BR>
|
|
<EM>> {
|
|
</EM><BR>
|
|
<EM>> config_line[--len] = '\0';
|
|
</EM><BR>
|
|
<EM>> }
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> What happens if len==0? Similar things are probably in many backends.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<P>Ok, this hsould fix it.
|
|
<BR>
|
|
<P>if (len && (config_line[len - 1] == '\n'))
|
|
<BR>
|
|
<P>Bye
|
|
<BR>
|
|
Oliver
|
|
<BR>
|
|
<P><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=<3AEEFF05.EB1091EF@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=<3AEEFF05.EB1091EF@rauch-domain.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0012.html">Henning Meier-Geinitz: "Re: New backend: UMAX 1220P sane'ification take 1"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0010.html">Henning Meier-Geinitz: "Re: [dev] Problems with dynamic loading on AIX"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0013.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0013.html">Henning Meier-Geinitz: "Re: scanimage -T using Purify..."</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#11">[ date ]</A>
|
|
<A HREF="index.html#11">[ thread ]</A>
|
|
<A HREF="subject.html#11">[ subject ]</A>
|
|
<A HREF="author.html#11">[ 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 - 11:21:38 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|