Fix prevent issue
authorhb.min <hb.min@samsung.com>
Mon, 15 Jul 2013 05:19:05 +0000 (14:19 +0900)
committerhb.min <hb.min@samsung.com>
Mon, 15 Jul 2013 05:19:05 +0000 (14:19 +0900)
Change-Id: I32fda9bdf16ecde5bf8557a9e3bc9c71e18f66b6
Signed-off-by: hb.min <hb.min@samsung.com>
capi/src/privilege_info.c

index 842b175..b32c80f 100644 (file)
@@ -193,7 +193,7 @@ int privilege_info_get_group_name_string_id(const char *privilege_group, char **
        int index = 0;
        TryReturn(privilege_group != NULL, PRVMGR_ERR_INVALID_PARAMETER, "[PRVMGR_ERR_INVALID_PARAMETER] privilege is NULL");
 
-       for (index = 0; index < PRIVILEGE_NUM; index++)
+       for (index = 0; index < MAX_PRV_GROUP; index++)
        {
                if (strncmp(privilege_group_info_table[index].privilege_group, privilege_group, strlen(privilege_group)) == 0)
                {