summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2023-04-20 09:06:39 +0200
committerJose M. Guisado <jguisado@soleta.eu>2023-04-20 10:08:52 +0200
commit8cf02475ba7714ef7b4117ff2032fc90784e60f2 (patch)
tree344a8499b6686357f0a40ad5d716a40116f71af7 /src
parent25e21f435da8b84c4d6290901df931c328a76b6f (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/client.c2
1 files changed, 1 insertions, 1 deletions
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];