docs/55805: a little correction to the arch-handbook
Rui Lopes
rui at ruilopes.com
Mon Aug 25 00:20:11 UTC 2003
The following reply was made to PR docs/55805; it has been noted by GNATS.
From: Rui Lopes <rui at ruilopes.com>
To: Igor Ahmetov <ahmetov at rain.ifmo.ru>
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: docs/55805: a little correction to the arch-handbook
Date: 25 Aug 2003 01:22:39 +0100
On S?, 2000-01-01 at 02:24, Igor Ahmetov wrote:
[...]
> >Description:
> Looking into the example in section 13.4 of the arch-handbook (driverbasics/chapter.sgml),
> we see a declaration:
> typedef struct s_echo {
> char msg[BUFFERSIZE];
> int len;
> } t_echo;
>
> And later, in function echo_write, the following statement:
> *(echomsg->msg + MIN(uio->uio_iov->iov_len,BUFFERSIZE)) = 0;
>
> So isn't it more correct to declare member msg of struct s_echo as char msg[BUFFERSIZE + 1]?
Take a look at:
http://www.freebsd.org/cgi/query-pr.cgi?pr=docs/55445
More information about the freebsd-doc
mailing list