ADDB: setup addb path buffer size to 512 bytes to support long pathname
Increased string buffer size to avoid buffer overflow errors when long path
name like following is used,
"linuxstob:/etc/cortx/share/var/log/cortx/motr/686ade725e1b4832b6c0aa5969b5c940/addb/m0d-0x72", '0' <repeats 13 times>, "1:0x15a/addb-stobs-263"
@@ -2262,7 +2262,7 @@ static int _args_parse(struct m0_motr *cctx, int argc, char **argv)
M0_STRINGARG('A', "ADDB storage domain location",
LAMBDA(void, (const char *s)
{
- char tmp_buf[128];
+ char tmp_buf[512];
sprintf(tmp_buf, "%s-%d", s, (int)m0_pid());
rctx->rc_addb_stlocation = strdup(tmp_buf);
})),
