saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 5e41777788bac717eb02bcb4ac43ed938ab47a75
parent c15166225a481fc033d43eac9bec29671747adaa
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  9 Dec 2016 01:07:54 +0100

remove test case, PATH_MAX + 1 just incase

Diffstat:
Msaait.c | 10+---------
1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/saait.c b/saait.c @@ -328,17 +328,9 @@ main(int argc, char *argv[]) { struct block *b; struct variable *c, *v; - char file[PATH_MAX], htmlfile[PATH_MAX], outputfile[PATH_MAX], *p; + char file[PATH_MAX + 1], htmlfile[PATH_MAX + 1], outputfile[PATH_MAX + 1], *p; int i, j, k, r; - - char *data = readfile("pages/001-gothic-1-guide.cfg"); - struct variable *test = parsevars(data); - free(data); - freevars(test); - - return 0; - #ifdef __OpenBSD__ if (pledge("stdio cpath rpath wpath", NULL) == -1) { fprintf(stderr, "pledge: %s\n", strerror(errno));