Commit e9e4aa46 authored by Dag Haavi Finstad's avatar Dag Haavi Finstad

Fix for an off-by-one issue in do_once_cb().

Fixes: #1133
parent a20b6af4
......@@ -168,7 +168,7 @@ do_once_cb(void *priv, const struct VSC_point * const pt)
if (strcmp(pt->ident, ""))
i += printf("%s.", pt->ident);
i += printf("%s", pt->desc->name);
if (i > op->pad)
if (i >= op->pad)
op->pad = i + 1;
printf("%*.*s", op->pad - i, op->pad - i, "");
if (pt->desc->flag == 'a' || pt->desc->flag == 'c')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment