Add const correctness to public interfaces
Gerard Krol, g dot c dot krol at student dot tudelft dot nl
Update version number to 0.9
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@27 327403b1-1117-474d-bef2-5cb71233fd97
diff --git a/printbuf.c b/printbuf.c
index cdda47e..6522a69 100644
--- a/printbuf.c
+++ b/printbuf.c
@@ -40,7 +40,7 @@
}
-int printbuf_memappend(struct printbuf *p, char *buf, int size)
+int printbuf_memappend(struct printbuf *p, const char *buf, int size)
{
char *t;
if(p->size - p->bpos <= size) {