cvs commit: src/usr.bin/vmstat vmstat.c

Dag-ErlingSmørgrav des at des.no
Mon Dec 8 04:18:14 PST 2003


Bruce Evans <bde at zeta.org.au> writes:
>  	for (i = 0; i < nintr; i++) {
>  		clen = strlen(tintrname);
> +
> +		/* Work around bogus padding in new interrupt code. */
> +		while (clen > 0 && tintrname[clen - 1] == ' ')
> +			clen--;
> +
>  		if (clen > istrnamlen)
>  			istrnamlen = clen;
>  		tintrname += clen + 1;
>  	}

This is wrong.  You can't possibly have tested it.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the cvs-src mailing list