comparison 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
comparison
equal deleted inserted replaced
1868:66a3fabe4870 1869:d7247462fa0d
357 } 357 }
358 /* Fill out the length */ 358 /* Fill out the length */
359 len = buf->pos - startpos - 4; 359 len = buf->pos - startpos - 4;
360 buf_setpos(buf, startpos); 360 buf_setpos(buf, startpos);
361 buf_putint(buf, len); 361 buf_putint(buf, len);
362 TRACE(("algolist add %d '%*s'", len, len, buf_getptr(buf, len))) 362 TRACE(("algolist add %d '%.*s'", len, len, buf_getptr(buf, len)))
363 buf_incrwritepos(buf, len); 363 buf_incrwritepos(buf, len);
364 } 364 }
365 365
366 void buf_put_algolist(buffer * buf, const algo_type localalgos[]) { 366 void buf_put_algolist(buffer * buf, const algo_type localalgos[]) {
367 buf_put_algolist_all(buf, localalgos, 0); 367 buf_put_algolist_all(buf, localalgos, 0);