diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uuid.c b/lib/uuid.c index a09321dc6..3d97dc835 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@ -209,7 +209,7 @@ static int bt_string_to_uuid32(bt_uuid_t *uuid, const char *string) uint32_t u32; char *endptr = NULL; - u32 = strtol(string, &endptr, 16); + u32 = strtoul(string, &endptr, 16); if (endptr && *endptr == '\0') { bt_uuid32_create(uuid, u32); return 0; |