summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/j2.c2
-rw-r--r--src/j2.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/j2.c b/src/j2.c
index b636c77..0ed7db8 100644
--- a/src/j2.c
+++ b/src/j2.c
@@ -78,7 +78,7 @@ int j2_cat(char* path) {
varstart = j2_strstr(line);
if(!varstart) {
- printf(line);
+ printf("%s", line);
continue;
}
varend = j2_readvar(varstart, buf, J2_MAXBUF);
diff --git a/src/j2.h b/src/j2.h
index c08f9ec..ca422b8 100644
--- a/src/j2.h
+++ b/src/j2.h
@@ -20,8 +20,8 @@
#include <string.h>
#include "common.h"
-#define J2_MAXLINE 4096
-#define J2_MAXBUF 1024
+#define J2_MAXLINE 1024 * 8
+#define J2_MAXBUF 1024 * 2
char* j2_readvar(char*, char*, int);

Generated by cgit