diff common-algo.c @ 1869:d7247462fa0d

Fix incorrect algolist TRACE print
author Matt Johnston <matt@ucc.asn.au>
date Tue, 01 Feb 2022 22:12:25 +0800
parents 8f28519e34b0
children 6cb6e81ca765
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);
 }