mirror of https://git.48k.eu/ogserver
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
parent
25e21f435d
commit
8cf02475ba
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue