---
# System prepended metadata

title: Vincent cln Mentoring 28 October 2022

---

# Vincent cln Mentoring 28 October 2022

Seems the error is caused in listconfigs calls opt->show(), which in this case is opt_show_charp() which only copies 80 chars.
The main idea is create a new method that is like opt_show_charp but will print an arbitrary length and use that in this case instead.

I've created two branches, one resizing variable with low size and include the message FIXME.

Other branch I've created a new branch called method where I added this

#define OPT_SHOW_LEN_BIG 128

https://github.com/javiervargas/lightning/blob/Method/ccan/ccan/opt/opt.h#L436

and this


void opt_show_charp_big(char buf[OPT_SHOW_LEN_BIG], char *const *p);

https://github.com/javiervargas/lightning/blob/Method/ccan/ccan/opt/opt.h#L455

What would be the best place to call this new method?

