PATCH: libsepol use correct pointer type in sizeof()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This looks to be a cut & pasto from the chunk above it.  It won't change
the code generated since sizeof(foo *) == sizeof(bar *) but it should
probably be fixed anyway.

Signed-off-by: Todd C. Miller <tmiller@xxxxxxxxxx>

Index: trunk/libsepol/src/users.c
===================================================================
--- trunk/libsepol/src/users.c	(revision 2802)
+++ trunk/libsepol/src/users.c	(working copy)
@@ -237,7 +237,7 @@
 
 		tmp_ptr = realloc(policydb->sym_val_to_name[SYM_USERS],
 				  (policydb->p_users.nprim +
-				   1) * sizeof(user_datum_t *));
+				   1) * sizeof(char *));
 		if (!tmp_ptr)
 			goto omem;
 		policydb->sym_val_to_name[SYM_USERS] = tmp_ptr;

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux