~ chicken-core (chicken-5) 32910b279634aa58a04c4fb825d872fd6c1347f2


commit 32910b279634aa58a04c4fb825d872fd6c1347f2
Author:     Evan Hanson <evhan@foldling.org>
AuthorDate: Sat Feb 20 15:49:20 2016 +1300
Commit:     Evan Hanson <evhan@foldling.org>
CommitDate: Sat Feb 20 15:49:20 2016 +1300

    Fix CHICKEN_DEBUGGER host splitting
    
    The previous commit should have shortened the "host" string, not "addr".

diff --git a/dbg-stub.c b/dbg-stub.c
index 58c4205c..8c479127 100644
--- a/dbg-stub.c
+++ b/dbg-stub.c
@@ -502,7 +502,7 @@ connect_to_debugger()
   else {
     port = atoi(addr + i + 1);
     host = C_strdup(addr);
-    addr[i] = '\0';    /* We don't use strndup() for compat reasons */
+    host[i] = '\0';    /* We don't use strndup() for compat reasons */
   }
 
 #ifdef _WIN32
Trap