Skip site navigation (1)Skip section navigation (2)
Date:      19 May 2000 14:16:25 +0200
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        Hajimu UMEMOTO (=?iso-2022-jp?b?GyRCR19LXBsoQiAbJEJIJRsoQg==?=) <ume@bisd.hitachi.co.jp>
Cc:        arch@freebsd.org
Subject:   Re: fetch(1)
Message-ID:  <xzpu2fug2g6.fsf@flood.ping.uio.no>
In-Reply-To: Hajimu UMEMOTO's message of "Fri, 19 May 2000 20:05:47 %2B0900"
References:  <200005161852.e4GIqhF74521@peace.mahoroba.org> <200005162001.e4GK1bF75342@peace.mahoroba.org> <xzpbt22horq.fsf@flood.ping.uio.no> <200005191105.e4JB5lx90246@plum.ssr.bisd.hitachi.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Hajimu UMEMOTO (梅本 肇) <ume@bisd.hitachi.co.jp> writes:
> >>>>> On 19 May 2000 11:28:57 +0200
> >>>>> des@flood.ping.uio.no (Dag-Erling Smorgrav) said:
> des>  #define isftpreply(foo) (isdigit(foo[0]) && isdigit(foo[1]) \
> des> -                        && isdigit(foo[2]) && foo[3] == ' ')
> des> +                        && isdigit(foo[2]) \
> des> +                         && (foo[3] == ' ' || foo[3] == '\0'))
> 
> Umm, I believe SPACE at foo[3] is not a optional text but required
> one.  If actually foo[3] == '\0', it should be protocol error.

No, look at the code that uses the macro.

DES
-- 
Dag-Erling Smorgrav - des@flood.ping.uio.no


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpu2fug2g6.fsf>