Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/pci



In article <20161102003956.35D12FBAE%cvs.NetBSD.org@localhost>,
Paul Goyette <source-changes-d%NetBSD.org@localhost> wrote:
>-=-=-=-=-=-
>
>+	/* Handle overflow */
>+	if ((size_t)count >= *len) {
>+		*dest += *len - 1;
>+		*len = 1;

Why *len = 1 here? Shouldn't it be 0 since there is no more room left?

christos



Home | Main Index | Thread Index | Old Index