diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2022-10-24 01:36:26 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2022-10-24 16:00:43 +0200 |
commit | 93a757ab7dfde74327da6316fbaddde13f56ae77 (patch) | |
tree | c82ccfc7a4b69c97c08b94e6dccfb27a5d34945f | |
parent | fcb91e43bd4fe0ef21f1797f94b6ea02d03fcab9 (diff) | |
download | libexpat-git-93a757ab7dfde74327da6316fbaddde13f56ae77.tar.gz |
examples/outline.c: Make use of BUFSIZ from stdio.h consistent across examples
-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); |