diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2011-08-01 15:19:21 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2011-08-01 15:19:21 -0400 |
commit | 1ea4b95e9ff47f29a05ba729edacb1410c73a4ac (patch) | |
tree | f4497eb01d4180725a21d65208c274dbe798626e | |
parent | 2171eaef1e863be608aa4db952b2110e4489469a (diff) |
Fix SAK event bounds check.
-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; |