client: increase software inventory buffer size

Large software inventory is truncated because it does not fit into the
existing buffer.

Software inventory response payload consists of a string with each
component delimited by '\n'. Large software inventories can consist of
more than 8192 bytes.

Avoid truncating any large software inventory by increasing the buffer
size where this string is stored.
master
Jose M. Guisado 2023-04-20 09:06:39 +02:00
parent 25e21f435d
commit 8cf02475ba
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ static int og_resp_hardware(json_t *data, struct og_client *cli)
}
struct og_software_legacy {
char software[8192];
char software[32768];
char center[OG_DB_INT_MAXLEN + 1];
char part[OG_DB_SMALLINT_MAXLEN + 1];
char id[OG_DB_INT_MAXLEN + 1];