diff options
Diffstat (limited to 'plugins/msmmanifest.c')
-rw-r--r-- | plugins/msmmanifest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/msmmanifest.c b/plugins/msmmanifest.c index 5c14e097c..73f7c4b40 100644 --- a/plugins/msmmanifest.c +++ b/plugins/msmmanifest.c @@ -51,7 +51,8 @@ static int msmVerifyAccessType(const char* type) int res = 0, idx = 0; if (type) { - if (strlen(type) > SMACK_ACCESS_TYPE_LENGHT) { + if (strnlen(type, SMACK_ACCESS_TYPE_LENGTH + 1) > + SMACK_ACCESS_TYPE_LENGTH) { rpmlog(RPMLOG_ERR, "Lenght of the access type is bigger than allowed value: %s\n", type); return -1; } |