Hi Holger,
Thanks for fixing this, I missed it:
http://cgit.osmocom.org/cgit/libosmocore/commit/?id=952a18ed19f531b82e26108f...
However, this fix is incomplete:
/* This generates the logging command string for VTY. */ const char *log_vty_command_string(const struct log_info *info) { int len = 0, offset = 0, ret, i, rem; int size = strlen("logging level () ()") + 1; ^^ We also have to add `(all|' there.
On 05/19/2011 01:04 AM, Pablo Neira Ayuso wrote:
Hi Holger,
Thanks for fixing this, I missed it:
http://cgit.osmocom.org/cgit/libosmocore/commit/?id=952a18ed19f531b82e26108f...
However, this fix is incomplete:
Hi,
thanks for the review (*blushing*). I think we should rely more on talloc here, e.g. use the various _append functions provided by talloc. This way we avoid having such issues again.
holger
On 19/05/11 01:10, Holger Freyther wrote:
On 05/19/2011 01:04 AM, Pablo Neira Ayuso wrote:
Hi Holger,
Thanks for fixing this, I missed it:
http://cgit.osmocom.org/cgit/libosmocore/commit/?id=952a18ed19f531b82e26108f...
However, this fix is incomplete:
Hi,
thanks for the review (*blushing*). I think we should rely more on talloc here, e.g. use the various _append functions provided by talloc. This way we avoid having such issues again.
Yes, it's easy to make this sort of mistakes, that code looks better than before I patched it but still a bit sloppy. I'll see if I find some spare time to use your suggestion to improve it.