BSC VTY: Fix off-by-one / segfault in 'show bts NR'
diff --git a/openbsc/src/bsc_vty.c b/openbsc/src/bsc_vty.c
index 5474b91..0c16164 100644
--- a/openbsc/src/bsc_vty.c
+++ b/openbsc/src/bsc_vty.c
@@ -269,7 +269,7 @@
 	if (argc != 0) {
 		/* use the BTS number that the user has specified */
 		bts_nr = atoi(argv[0]);
-		if (bts_nr > net->num_bts) {
+		if (bts_nr >= net->num_bts) {
 			vty_out(vty, "%% can't find BTS '%s'%s", argv[0],
 				VTY_NEWLINE);
 			return CMD_WARNING;