$OpenBSD: patch-link-grammar_parse_count_c,v 1.2 2021/10/31 15:02:58 ajacoutot Exp $

Index: link-grammar/parse/count.c
--- link-grammar/parse/count.c.orig
+++ link-grammar/parse/count.c
@@ -410,7 +410,7 @@ static void table_stat(count_context_t *ctxt)
 				{
 					if (t->null_count != nc) continue;
 
-					printf("[%u]%n", i, &n);
+					n = printf("[%u]", i);
 					printf("%*d %5d c=%lld\n",  15-n, t->l_id, t->r_id, t->count);
 				}
 			}
