You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/05/17 20:51:44 UTC

[21/50] [abbrv] incubator-mynewt-core git commit: bletiny - Fix crash when deleting connection.

bletiny - Fix crash when deleting connection.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/aeb1f54b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/aeb1f54b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/aeb1f54b

Branch: refs/heads/master
Commit: aeb1f54b649ed5be09cb9a5d05309e4b9451ff0b
Parents: 5cfe29f
Author: Christopher Collins <cc...@apache.org>
Authored: Wed May 11 16:04:04 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Wed May 11 16:04:04 2016 -0700

----------------------------------------------------------------------
 apps/bletiny/src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/aeb1f54b/apps/bletiny/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletiny/src/main.c b/apps/bletiny/src/main.c
index 7f76cc7..2090554 100755
--- a/apps/bletiny/src/main.c
+++ b/apps/bletiny/src/main.c
@@ -420,7 +420,7 @@ bletiny_conn_delete_idx(int idx)
      */
 #if NIMBLE_OPT_MAX_CONNECTIONS > 1
     int i;
-    for (i = idx; i < bletiny_num_conns; i++) {
+    for (i = idx + 1; i < bletiny_num_conns; i++) {
         bletiny_conns[i - 1] = bletiny_conns[i];
     }
 #endif