2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-08-25 04:30:29 +00:00

Merge branch 'master' into async

This commit is contained in:
Jarrod Johnson
2024-06-14 11:22:05 -04:00

View File

@@ -44,11 +44,11 @@ int add_confluent_uuid(char* destination, int maxsize) {
int uuidsize;
uuidf = open("/confluent_uuid", O_RDONLY);
if (uuidf < 0) { return 0; }
strncpy(destination, "/confluentuuid=", maxsize);
uuidsize = read(uuidf, destination + 15, maxsize - 15);
close(uuidf);
if (uuidsize < 0) { return 0; }
if (uuidsize > 524288) { return 0; }
strncpy(destination, "/confluentuuid=", maxsize);
if (destination[uuidsize + 14] == '\n') {
destination[uuidsize + 14] = 0;
}