summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/profiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index c8d875dfab..c939af276d 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -435,7 +435,7 @@ int get_sid(DOM_SID *sid, char *sid_str)
lstr = sid_str + 5;
while (1) {
- if (!lstr || !lstr[0] || sscanf(lstr, "-%d", &auth) == 0) {
+ if (!lstr || !lstr[0] || sscanf(lstr, "-%u", &auth) == 0) {
if (i < 4) {
fprintf(stderr, "Not of form -d-d...: %s, %u\n", lstr, i);
return 0;