changeset 1869:d7247462fa0d

Fix incorrect algolist TRACE print
author Matt Johnston <matt@ucc.asn.au>
date Tue, 01 Feb 2022 22:12:25 +0800
parents 66a3fabe4870
children 0dcc5b0d93fa
files common-algo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common-algo.c	Tue Feb 01 15:51:01 2022 +0800
+++ b/common-algo.c	Tue Feb 01 22:12:25 2022 +0800
@@ -359,7 +359,7 @@
 	len = buf->pos - startpos - 4;
 	buf_setpos(buf, startpos);
 	buf_putint(buf, len);
-	TRACE(("algolist add %d '%*s'", len, len, buf_getptr(buf, len)))
+	TRACE(("algolist add %d '%.*s'", len, len, buf_getptr(buf, len)))
 	buf_incrwritepos(buf, len);
 }