From: <mil...@us...> - 2008-02-12 21:55:55
|
Revision: 2804 http://selinux.svn.sourceforge.net/selinux/?rev=2804&view=rev Author: millertc Date: 2008-02-12 13:55:50 -0800 (Tue, 12 Feb 2008) Log Message: ----------- Author: Todd C. Miller Email: tm...@tr... Subject: libsepol use correct pointer type in sizeof() Date: Tuesday, February 12, 2008 3:59 PM 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 <tm...@tr...> Acked-by: Stephen Smalley <sd...@ty...> Modified Paths: -------------- trunk/libsepol/src/users.c Modified: trunk/libsepol/src/users.c =================================================================== --- trunk/libsepol/src/users.c 2008-02-11 16:10:00 UTC (rev 2803) +++ trunk/libsepol/src/users.c 2008-02-12 21:55:50 UTC (rev 2804) @@ -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 was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |