diff options
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/lists.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/lists.c b/FICS/lists.c index 97ee525..e93dd5b 100644 --- a/FICS/lists.c +++ b/FICS/lists.c @@ -63,7 +63,7 @@ list_find(int p, enum ListWhich l) personal = ListArray[l].rights == P_PERSONAL; if (personal) { - if (p < 0) + if (p < 0 || p >= (int)ARRAY_SIZE(parray)) return NULL; starter = &parray[p].lists; } else { |
