lib: Fix CID 241650 Sizeof not portable
authorVolker Lendecke <vl@samba.org>
Sun, 12 May 2013 10:47:39 +0000 (12:47 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 12 May 2013 15:44:55 +0000 (17:44 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sun May 12 17:44:55 CEST 2013 on sn-devel-104

source3/lib/util_str.c

index 314c7eac33237be5ae604dff28c0a9879939534a..967beda1c5d96bfbd8ec3544aaa8458b0e07ca8d 100644 (file)
@@ -1282,7 +1282,7 @@ char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string,
                        list = tmp;
 
                        memset (&list[num], 0,
-                               ((sizeof(char**)) * (S_LIST_ABS +1)));
+                               ((sizeof(char*)) * (S_LIST_ABS +1)));
                }
 
                list[num] = tok;