Author: mdf Date: Wed Jun 1 17:51:18 2011 New Revision: 222576 URL: http://svn.freebsd.org/changeset/base/222576
Log: MFC r212478: (originally by kan@) Add missing pointer increment to sbuf_cat. Modified: stable/8/sys/kern/subr_sbuf.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/kern/subr_sbuf.c ============================================================================== --- stable/8/sys/kern/subr_sbuf.c Wed Jun 1 17:40:59 2011 (r222575) +++ stable/8/sys/kern/subr_sbuf.c Wed Jun 1 17:51:18 2011 (r222576) @@ -462,7 +462,7 @@ sbuf_cat(struct sbuf *s, const char *str return (-1); while (*str != '\0') { - sbuf_put_byte(*str, s); + sbuf_put_byte(*str++, s); if (SBUF_HASOVERFLOWED(s)) return (-1); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"