diff options
-rw-r--r-- | src/sak.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ static struct display *sak_displays[NUM_SAKS]; int sak_register(unsigned sak_code, struct display *d) { - if (sak_code > NUM_SAKS) + if (sak_code >= NUM_SAKS) return -1; if (sak_displays[sak_code] == d) return 0; |