add line length and make it utf-8 compatible
[smdp.git] / markdown.c
index 90219e5..0d42005 100644 (file)
@@ -8,7 +8,7 @@ line_t *new_line() {
     line_t *x = malloc(sizeof(line_t));
     x->text = (void*)0;
     x->prev = x->next = (void*)0;
-    x->bits = x->offset = 0;
+    x->bits = x->length = x->offset = 0;
     return x;
 }