Browse Source

cmd: Check valid slot against outputs.

Georgi Chorbadzhiyski 9 years ago
parent
commit
290382b178
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmd.c

+ 1
- 1
cmd.c View File

@@ -189,7 +189,7 @@ bool parse_command(struct videohub_data *data, char *cmd) {
189 189
 				slot_data[0] = '\0'; // Separate slot_pos from slot_data
190 190
 				slot_data++;
191 191
 				slot_pos = strtoul(line, NULL, 10);
192
-				if (slot_pos < ARRAY_SIZE(data->inputs))
192
+				if (slot_pos < ARRAY_SIZE(data->outputs))
193 193
 					valid_slot = true;
194 194
 			}
195 195
 			break;

Loading…
Cancel
Save