String length fix from Toomas Soome <tsoome@ut.ee>
authorTim Potter <tpot@samba.org>
Wed, 12 Sep 2001 11:48:22 +0000 (11:48 +0000)
committerTim Potter <tpot@samba.org>
Wed, 12 Sep 2001 11:48:22 +0000 (11:48 +0000)
(This used to be commit 42417a425b524bc74360fdf6f1a16bfad38b9818)

source3/passdb/passdb.c

index 615083ca41151ea644c3c3ec1fc105687b5fe502..ac9f83b4644be0aaa64ade988c004bfbbe0980d1 100644 (file)
@@ -591,7 +591,7 @@ BOOL local_sid_to_gid(gid_t *pgid, DOM_SID *psid, enum SID_NAME_USE *name_type)
 static void select_name(pstring string, const UNISTR2 *from)
 {
        if (from->buffer != 0)
-               unistr2_to_ascii(string, from, sizeof(*string));
+               unistr2_to_ascii(string, from, sizeof(string));
 }
 
 /*************************************************************