]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hostnamed: use byte array when we need a byte array
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Apr 2021 12:33:19 +0000 (14:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 29 Apr 2021 14:39:09 +0000 (16:39 +0200)
it's more corect this way, but shouldn#t change a thing binary-wise

src/hostname/hostnamed.c

index 27d9fecbc1b3eb2eae9b8fd10c66200f834f7dad..20b4f4e61fa82e90bd07315e50ea6227b891ba93 100644 (file)
@@ -972,7 +972,7 @@ static int method_get_product_uuid(sd_bus_message *m, void *userdata, sd_bus_err
         if (r < 0)
                 return r;
 
-        r = sd_bus_message_append_array(reply, 'y', &uuid, sizeof(uuid));
+        r = sd_bus_message_append_array(reply, 'y', uuid.bytes, sizeof(uuid.bytes));
         if (r < 0)
                 return r;