summaryrefslogtreecommitdiff
path: root/printbuf.c
diff options
context:
space:
mode:
authorMichael Clark <michael@metaparadigm.com>2009-07-25 00:13:44 +0000
committerMichael Clark <michael@metaparadigm.com>2009-07-25 00:13:44 +0000
commit7fb9b03ffdc5942c4e542b53f2bf96f4d36d3059 (patch)
tree6a4d5f2a600529aeac532d03ef33519e42cd39f3 /printbuf.c
parentb1a22ac85f8251688f77da52d000958fab3a8d66 (diff)
downloadjson-c-7fb9b03ffdc5942c4e542b53f2bf96f4d36d3059.tar.gz
* Rename min and max so we can never clash with C or C++ std library
Ian Atha, thatha at yahoo-inc dot com git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@43 327403b1-1117-474d-bef2-5cb71233fd97
Diffstat (limited to 'printbuf.c')
-rw-r--r--printbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/printbuf.c b/printbuf.c
index a809aa9..97366c3 100644
--- a/printbuf.c
+++ b/printbuf.c
@@ -49,7 +49,7 @@ int printbuf_memappend(struct printbuf *p, const char *buf, int size)
{
char *t;
if(p->size - p->bpos <= size) {
- int new_size = max(p->size * 2, p->bpos + size + 8);
+ int new_size = json_max(p->size * 2, p->bpos + size + 8);
#ifdef PRINTBUF_DEBUG
MC_DEBUG("printbuf_memappend: realloc "
"bpos=%d wrsize=%d old_size=%d new_size=%d\n",