diff options
Diffstat (limited to 'Compiler/src')
-rw-r--r-- | Compiler/src/compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Compiler/src/compiler.cpp b/Compiler/src/compiler.cpp index 89d06cd..1220457 100644 --- a/Compiler/src/compiler.cpp +++ b/Compiler/src/compiler.cpp @@ -20,7 +20,7 @@ std::string compile_line(const char *raw) { // Get depth of header int depth; - for (depth = 0; (*(raw + depth)) == '#'; ++depth); + for (depth = 0; (*(raw + depth)) == '#' && depth < 7; ++depth); asprintf(&r, "<h%d>%s</h%d>", depth, raw + depth, depth); return r; |