]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libwbclient: Fix wbcStringToGuid
authorVolker Lendecke <vl@samba.org>
Sun, 24 Jan 2021 08:36:15 +0000 (09:36 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 28 Jan 2021 16:58:35 +0000 (16:58 +0000)
The "x" sscanf conversion specifier requires an unsigned int. It is
likely that this is actually a uint32_t, don't rely on that.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
nsswitch/libwbclient/wbc_guid.c

index 52a64ca5801ce8daf87d135db2c68cb9f841d884..631d7ecb751903dfdd68cd4d2dc8314f7617d214 100644 (file)
@@ -53,10 +53,10 @@ wbcErr wbcGuidToString(const struct wbcGuid *guid,
 wbcErr wbcStringToGuid(const char *str,
                       struct wbcGuid *guid)
 {
-       uint32_t time_low;
-       uint32_t time_mid, time_hi_and_version;
-       uint32_t clock_seq[2];
-       uint32_t node[6];
+       unsigned int time_low;
+       unsigned int time_mid, time_hi_and_version;
+       unsigned int clock_seq[2];
+       unsigned int node[6];
        int i;
        wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;