From 8cf02475ba7714ef7b4117ff2032fc90784e60f2 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Thu, 20 Apr 2023 09:06:39 +0200 Subject: 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. --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client.c b/src/client.c index 3849e85..36e2565 100644 --- a/src/client.c +++ b/src/client.c @@ -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]; -- cgit v1.2.3-18-g5258