From: mid Date: Tue, 28 Dec 1999 06:46:30 +0000 (+0000) Subject: Fix the small bug in aim_newcon. X-Git-Tag: rel_0_99_2~184 X-Git-Url: http://andersk.mit.edu/gitweb/libfaim.git/commitdiff_plain/9ba272ca73923773d44b27896645bdb13480736f Fix the small bug in aim_newcon. --- diff --git a/aim_conn.c b/aim_conn.c index 69f06c9..4452ebb 100644 --- a/aim_conn.c +++ b/aim_conn.c @@ -100,6 +100,9 @@ struct aim_conn_t *aim_newconn(struct aim_session_t *sess, } host = (char *)malloc(i+1); strncpy(host, dest, i); + host[i] = '\0'; + + printf("host = \"%s\"\n", host); hp = gethostbyname2(host, AF_INET); free(host); diff --git a/utils/Makefile b/utils/Makefile index ae11c4e..eb3475a 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -1,6 +1,6 @@ include Makefile.dynamicrules -UTIL_DIRS = faimtest #aimpasswd +UTIL_DIRS = aimdump faimtest #aimpasswd utils_all: @dirs='$(UTIL_DIRS)'; \