mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-21 17:11:58 +00:00
Correct mistake with confluent uuid copy-in in copernicus
This commit is contained in:
parent
d06be55568
commit
8e407cb96e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user