fix cast
authorAndrew Tridgell <tridge@samba.org>
Tue, 28 Oct 1997 14:55:47 +0000 (14:55 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 28 Oct 1997 14:55:47 +0000 (14:55 +0000)
source/utils/smbpasswd.c

index a4c25417ca2685fdb502b03cc1cf83cff2d1f241..cba7754fc934d4043413a21e4313200136b6edac 100644 (file)
@@ -453,7 +453,7 @@ Error was %s\n", argv[0], pwd->pw_name, pfile, strerror(errno));
         exit(1);
       }
 
-      sprintf(new_entry, "%s:%u:", pwd->pw_name, pwd->pw_uid);
+      sprintf(new_entry, "%s:%u:", pwd->pw_name, (unsigned)pwd->pw_uid);
       p = &new_entry[strlen(new_entry)];
       for( i = 0; i < 16; i++)
         sprintf(&p[i*2], "%02X", new_p16[i]);