]> andersk Git - libfaim.git/blobdiff - aim_conn.c
aimdump bugfix.
[libfaim.git] / aim_conn.c
index 69f06c9db6f3939f46faf4ef1808fe1cd6f57b0a..ddc0ba8f4f00848d752bdfa3bad1e0163cf03164 100644 (file)
@@ -100,6 +100,7 @@ struct aim_conn_t *aim_newconn(struct aim_session_t *sess,
     }
   host = (char *)malloc(i+1);
   strncpy(host, dest, i);
+  host[i] = '\0';
 
   hp = gethostbyname2(host, AF_INET);
   free(host);
This page took 0.123011 seconds and 4 git commands to generate.