Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jun 2011 17:51:18 +0000 (UTC)
From:      Matthew D Fleming <mdf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r222576 - stable/8/sys/kern
Message-ID:  <201106011751.p51HpIJ2080529@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



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