diff options
author | kan <kan@FreeBSD.org> | 2010-09-11 19:42:50 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2010-09-11 19:42:50 +0000 |
commit | a47d3fbf1995025e7134c0b17b50cc48ea13f3bd (patch) | |
tree | 3366040810ee9700ae278f83f203f4b84ea5ef1a | |
parent | 0b2ac861b54b90c8db0a69d05d466c2fa101b714 (diff) | |
download | FreeBSD-src-a47d3fbf1995025e7134c0b17b50cc48ea13f3bd.zip FreeBSD-src-a47d3fbf1995025e7134c0b17b50cc48ea13f3bd.tar.gz |
Add missing pointer increment to sbuf_cat.
-rw-r--r-- | sys/kern/subr_sbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_sbuf.c b/sys/kern/subr_sbuf.c index 4535337..0d083b4 100644 --- a/sys/kern/subr_sbuf.c +++ b/sys/kern/subr_sbuf.c @@ -441,7 +441,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 (s->s_error != 0) return (-1); } |