X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=tmp.c;h=33b8603aef9d62b6c247d5d3eeb2c1060fc09684;hb=f2bc670605162224119269271f7c07459c9de0a8;hp=eeec4a4eee616febace83240a65b16d535682835;hpb=3f5b9cb68b3da6a63b2f70a69da04dfa51c59e09;p=smdp.git diff --git a/tmp.c b/tmp.c index eeec4a4..33b8603 100644 --- a/tmp.c +++ b/tmp.c @@ -69,7 +69,7 @@ int main(int argc, char *argv[]) { if(doc->header) { header = doc->header; while(header && - header->text->size > 0 && + header->length > 0 && header->text->text[0] == '%') { offset = next_blank(header->text, 0) + 1; @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) { while(line) { cl++; if(debug > 1) { - fprintf(stderr, " line %i: bits = %i, length = %i\n", cl, line->bits, line->text->size); + fprintf(stderr, " line %i: bits = %i, length = %i\n", cl, line->bits, line->length); } line = line->next; }