Skip to content

Commit eeeeb9c

Browse files
authored
warning: array subscript is above array bounds
1 parent 348e38f commit eeeeb9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsdevices.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ typedef enum {
6363

6464
JshSerialDeviceState jshSerialDeviceStates[1+EV_SERIAL_MAX-EV_SERIAL_DEVICE_STATE_START];
6565
/// Device clear to send hardware flow control pins (PIN_UNDEFINED if not used)
66-
Pin jshSerialDeviceCTSPins[EV_SERIAL_MAX-EV_SERIAL_DEVICE_STATE_START];
66+
Pin jshSerialDeviceCTSPins[1+EV_SERIAL_MAX-EV_SERIAL_DEVICE_STATE_START];
6767
#define TO_SERIAL_DEVICE_STATE(X) ((X)-EV_SERIAL_DEVICE_STATE_START)
6868

6969
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)