=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/buf.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- src/usr.bin/rcs/buf.c 2011/04/20 19:34:16 1.21 +++ src/usr.bin/rcs/buf.c 2011/07/06 15:36:52 1.22 @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.21 2011/04/20 19:34:16 nicm Exp $ */ +/* $OpenBSD: buf.c,v 1.22 2011/07/06 15:36:52 nicm Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau * All rights reserved. @@ -185,6 +185,15 @@ bp = b->cb_buf + b->cb_len; *bp = (u_char)c; b->cb_len++; +} + +/* + * Append a string to the end of buffer . + */ +void +buf_puts(BUF *b, const char *str) +{ + buf_append(b, str, strlen(str)); } /*