author | Olivier Brunel
<jjk@jjacky.com> 2023-01-13 10:41:09 UTC |
committer | Olivier Brunel
<jjk@jjacky.com> 2023-01-13 10:41:09 UTC |
parent | f3b10895a8a8f48f4cd8e76e32356853aca75ad9 |
src/main.c | +4 | -3 |
diff --git a/src/main.c b/src/main.c index bee289f..c7bda86 100644 --- a/src/main.c +++ b/src/main.c @@ -995,10 +995,11 @@ leave_span(MD_SPANTYPE type, void *details, void *ctx_) return ERR_PARSER_LEAVE_SPAN; char buf[UINT32_FMT + 2]; + int e; buf[0] = '('; - section = uint32_fmt(buf + 1, (uint32) section); - buf[1 + section] = ')'; - buf[2 + section] = '\0'; + e = uint32_fmt(buf + 1, (uint32) section); + buf[1 + e] = ')'; + buf[2 + e] = '\0'; const char *file; for (int i = 0; i < ctx->nb_pages; ++i) {