]> andersk Git - libfaim.git/blobdiff - aim_login.c
- Thu Aug 17 22:53:03 UTC 2000
[libfaim.git] / aim_login.c
index 1af14201000fd65a269483884a0ef5ef9f4cc9f9..44ed08d38f10413e8d47fc7e9344589b734d264b 100644 (file)
@@ -253,9 +253,9 @@ int aim_authparse(struct aim_session_t *sess,
    * No matter what, we should have a screen name.
    */
   sn = aim_gettlv_str(tlvlist, 0x0001, 1);
-  memcpy(sess->logininfo.screen_name, sn, strlen(sn));
-  sn[(strlen(sn))] = '\0';
-  
+  strncpy(sess->logininfo.screen_name, sn, strlen(sn));
+  free(sn);
+
   /*
    * Check for an error code.  If so, we should also
    * have an error url.
This page took 0.073028 seconds and 4 git commands to generate.