From 09e5d28768510e10c6f8fd1b0e950f9427a6f836 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 12 Apr 2011 19:17:43 -0300 Subject: [PATCH] xxx --- tools/lib/misctxrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/misctxrx.c b/tools/lib/misctxrx.c index 828a935..30184be 100644 --- a/tools/lib/misctxrx.c +++ b/tools/lib/misctxrx.c @@ -165,7 +165,7 @@ double tx_power_step2dBm(struct atrf_dsc *dsc, int step) { const double *tx_pwr = tx_power_table(dsc); - if (step < 0 || step > POWER_TABLE_SIZE) + if (step < 0 || step >= POWER_TABLE_SIZE) abort(); return tx_pwr[step]; }