From af13f5e1788b6f81cfcdaeb85dc709458e3d4816 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 28 Oct 1997 14:55:47 +0000 Subject: [PATCH] fix cast --- source/utils/smbpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c index a4c25417ca2..cba7754fc93 100644 --- a/source/utils/smbpasswd.c +++ b/source/utils/smbpasswd.c @@ -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]);