+ if (tlv->length >= MAXSNLEN)
+ {
+ /* SN too large... truncate */
+ printf("faim: login: screen name from OSCAR too long! (%d)\n", tlv->length);
+ strncpy(sess->logininfo.screen_name, tlv->value, MAXSNLEN);
+ }
+ else
+ strncpy(sess->logininfo.screen_name, tlv->value, tlv->length);