diff options
Diffstat (limited to 'usr/src/cmd/svc')
| -rw-r--r-- | usr/src/cmd/svc/common/notify_params.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/svc/common/notify_params.c b/usr/src/cmd/svc/common/notify_params.c index e947b0fa76..16104d899e 100644 --- a/usr/src/cmd/svc/common/notify_params.c +++ b/usr/src/cmd/svc/common/notify_params.c @@ -87,7 +87,7 @@ static char *fma_classes[] = { const char * get_fma_tag(uint32_t index) { - if (index > (sizeof (fma_tags) / sizeof (struct fma_tags))) + if (index >= (sizeof (fma_tags) / sizeof (struct fma_tags))) return (NULL); return (fma_tags[index].t); @@ -101,7 +101,7 @@ get_fma_tag(uint32_t index) const char * get_fma_class(uint32_t index) { - if (index > (sizeof (fma_tags) / sizeof (struct fma_tags))) + if (index >= (sizeof (fma_tags) / sizeof (struct fma_tags))) return (NULL); return (fma_tags[index].s); |
