sane-project-website/old-archive/2000-12/0101.html

122 wiersze
4.4 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: seg-faults for network access</TITLE>
<META NAME="Author" CONTENT="Jochen Eisinger (jochen.eisinger@gno.de)">
<META NAME="Subject" CONTENT="Re: seg-faults for network access">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: seg-faults for network access</H1>
<!-- received="Sun Dec 10 05:41:49 2000" -->
<!-- isoreceived="20001210134149" -->
<!-- sent="Sun, 10 Dec 2000 14:43:42 +0100" -->
<!-- isosent="20001210134342" -->
<!-- name="Jochen Eisinger" -->
<!-- email="jochen.eisinger@gno.de" -->
<!-- subject="Re: seg-faults for network access" -->
<!-- id="3A33888E.416693AD@gno.de" -->
<!-- inreplyto="3A3386F0.1E7BD672@gno.de" -->
<STRONG>From:</STRONG> Jochen Eisinger (<A HREF="mailto:jochen.eisinger@gno.de?Subject=Re:%20seg-faults%20for%20network%20access&In-Reply-To=&lt;3A33888E.416693AD@gno.de&gt;"><EM>jochen.eisinger@gno.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun Dec 10 2000 - 05:43:42 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0102.html">Mitsuru Okaniwa: "Re: The calibration function for CanoScanFB620S"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0108.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#101">[ date ]</A>
<A HREF="index.html#101">[ thread ]</A>
<A HREF="subject.html#101">[ subject ]</A>
<A HREF="author.html#101">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi!
<BR>
<P>little typo in the patch... sorry
<BR>
<P>-- jochen
<BR>
<P><EM>&gt; --- ../sane/sane-backends/sanei/sanei_wire.c Sat Aug 12 17:11:37 2000
</EM><BR>
<EM>&gt; +++ sane-backends/sanei/sanei_wire.c Sun Dec 10 12:38:19 2000
</EM><BR>
<EM>&gt; @@ -56,6 +56,9 @@
</EM><BR>
<EM>&gt; int fd = w-&gt;io.fd;
</EM><BR>
<EM>&gt; ssize_t nread, nwritten;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; + if (w-&gt;status != 0)
</EM><BR>
<EM>&gt; + return;
</EM><BR>
<EM>&gt; +
</EM><BR>
<EM>&gt; if (w-&gt;buffer.curr + howmuch &gt; w-&gt;buffer.end)
</EM><BR>
<EM>&gt; {
</EM><BR>
<EM>&gt; switch (w-&gt;direction)
</EM><BR>
<EM>&gt; @@ -80,6 +83,8 @@
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; case WIRE_DECODE:
</EM><BR>
<EM>&gt; left_over = w-&gt;buffer.end - w-&gt;buffer.curr;
</EM><BR>
<EM>&gt; + if ((signed) left_over &lt; 0)
</EM><BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^^^ too many brackets here
<BR>
<P><EM>&gt; + return;
</EM><BR>
<EM>&gt; if (left_over)
</EM><BR>
<EM>&gt; memcpy (w-&gt;buffer.start, w-&gt;buffer.curr, left_over);
</EM><BR>
<EM>&gt; w-&gt;buffer.curr = w-&gt;buffer.start;
</EM><BR>
<P><PRE>
--
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:%20seg-faults%20for%20network%20access&In-Reply-To=&lt;3A33888E.416693AD@gno.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0102.html">Mitsuru Okaniwa: "Re: The calibration function for CanoScanFB620S"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0108.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#101">[ date ]</A>
<A HREF="index.html#101">[ thread ]</A>
<A HREF="subject.html#101">[ subject ]</A>
<A HREF="author.html#101">[ 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>Sun Dec 10 2000 - 05:42:06 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>