1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

libwbclient: Fix wbcStringToGuid

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>
This commit is contained in:
Volker Lendecke 2021-01-24 09:36:15 +01:00
parent 2b9ba992b6
commit c1614edf29

View 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;