diff --git a/client/d4.c b/client/d4.c index 6017298..fca2e00 100644 --- a/client/d4.c +++ b/client/d4.c @@ -26,7 +26,7 @@ void d4_update_uuid(d4_t* d4) if (d4->conf[UUID][0] == 0){ uuid_generate(uuid); - memcpy(&(d4->header.uuid), uuid, SZUUID); + memcpy(d4->conf[UUID], uuid, SZUUID); filename = calloc(1,2*FILENAME_MAX); uuid_text = calloc(1, SZUUID_TEXT); if ((filename != NULL) && (uuid != NULL)) {