Commit bc4d0d2b authored by John Beranek's avatar John Beranek
Browse files

Fixed memory trampling bug in remote_debug_open. Was causing unexplained...

Fixed memory trampling bug in remote_debug_open.  Was causing unexplained exits in code compiled with remotedb.

.
Removed dynamic depenencies from Makefile

Version 0.01, 1.1.2.4. Tagged as 'remotedb-0_01-1_1_2_4'
parent d54e2191
......@@ -4,11 +4,11 @@
*
*/
#define Module_MajorVersion_CMHG 0.01
#define Module_MinorVersion_CMHG 1.1.2.3
#define Module_Date_CMHG 20 Apr 1998
#define Module_MinorVersion_CMHG 1.1.2.4
#define Module_Date_CMHG 22 Jun 1998
#define Module_MajorVersion "0.01"
#define Module_Version 1
#define Module_MinorVersion "1.1.2.3"
#define Module_Date "20 Apr 1998"
#define Module_MinorVersion "1.1.2.4"
#define Module_Date "22 Jun 1998"
......@@ -254,6 +254,7 @@ remote_debug_open(char *info, debug_session **db_sess)
if (getenv("Inet$DebugHost")==NULL)
goto exit_gracefully;
strncpy(host,getenv("Inet$DebugHost"),sizeof(host));
host[sizeof(host)-1] = '\0';
/*
* find port
......@@ -293,7 +294,7 @@ remote_debug_open(char *info, debug_session **db_sess)
sess->sock = debug_socket;
if ((sess->info=malloc(strlen(info)+2))==NULL)
if ((sess->info=malloc(strlen(info)+/*2 - No, you need + 3 JBeranek */ 3))==NULL)
goto exit_gracefully;
strcpy(sess->info, info);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment