diff options
-rw-r--r-- | expat/examples/outline.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/expat/examples/outline.c b/expat/examples/outline.c index 0efa0eae..048c83c0 100644 --- a/expat/examples/outline.c +++ b/expat/examples/outline.c @@ -51,8 +51,6 @@ # define XML_FMT_STR "s" #endif -#define BUFFSIZE 8192 - static void XMLCALL start(void *data, const XML_Char *el, const XML_Char **attr) { int i; @@ -81,7 +79,7 @@ end(void *data, const XML_Char *el) { int main(void) { - char buf[BUFFSIZE]; + char buf[BUFSIZ]; XML_Parser parser = XML_ParserCreate(NULL); int depth = 0; @@ -97,7 +95,7 @@ main(void) { int done; int len; - len = (int)fread(buf, 1, BUFFSIZE, stdin); + len = (int)fread(buf, 1, BUFSIZ, stdin); if (ferror(stdin)) { fprintf(stderr, "Read error\n"); exit(-1); |