sync 3.0 into HEAD for the last time
[metze/samba/wip.git] / source3 / utils / profiles.c
index 23df26d15022b5045e40d8cf480a81bfb061627e..3230eb21fc88fb44555f180743d38f19968dd4f6 100644 (file)
@@ -448,7 +448,7 @@ static int get_sid(DOM_SID *sid, const unsigned char *sid_str)
 
     SIVAL(&sid->sub_auths[i], 0, auth);
     i++;
-    lstr = strchr(lstr + 1, '-'); 
+    lstr = (const unsigned char *)strchr(lstr + 1, '-'); 
   }
 
   return 1;