]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/jsmn/example/jsondump.c
palette utilities made ^^
[16.git] / src / lib / jsmn / example / jsondump.c
old mode 100644 (file)
new mode 100755 (executable)
index e0f9985..3490bbf
@@ -2,7 +2,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
-#include "../jsmn.c"
+#include "../jsmn.h"
 
 /*
  * An example of reading JSON from stdin and printing its content to stdout.
@@ -50,7 +50,7 @@ int main() {
        int eof_expected = 0;
        char *js = NULL;
        size_t jslen = 0;
-       char buf[BUFSIZ-256];
+       char buf[BUFSIZ];
 
        jsmn_parser p;
        jsmntok_t *tok;