diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-03 03:05:11 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-03 03:05:11 +0000 |
commit | 473ce5e5393eec33250a56e7099e936f185b4c6e (patch) | |
tree | 584c9e4f8744ae9b95312fbb94db1fa4dbe0a7f7 /usr.bin/rcs/buf.c | |
parent | d3954d00718d59490c2155794b044ea59f92597f (diff) |
- correctly handle binary files; say bye bye to using c strings for deltatexts.
"slap it in" joris@
Diffstat (limited to 'usr.bin/rcs/buf.c')
-rw-r--r-- | usr.bin/rcs/buf.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/rcs/buf.c b/usr.bin/rcs/buf.c index f1ac7dfd108..d2bf8029a6f 100644 --- a/usr.bin/rcs/buf.c +++ b/usr.bin/rcs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.4 2006/06/01 21:28:24 niallo Exp $ */ +/* $OpenBSD: buf.c,v 1.5 2006/06/03 03:05:10 niallo Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -150,6 +150,15 @@ rcs_buf_release(BUF *b) } /* + * rcs_buf_get() + */ +void * +rcs_buf_get(BUF *b) +{ + return (b->cb_buf); +} + +/* * rcs_buf_empty() * * Empty the contents of the buffer <b> and reset pointers. |