$OpenBSD: patch-account_c,v 1.2 2007/11/19 11:44:33 martynas Exp $
--- account.c.orig	Mon Aug 20 16:27:13 2007
+++ account.c	Mon Nov 19 13:39:00 2007
@@ -134,9 +134,9 @@ void account_on( irc_t *irc, account_t *a )
 	u = g_new0 ( struct aim_user, 1 );
 	u->irc = irc;
 	u->protocol = a->protocol;
-	strncpy( u->username, a->user, sizeof( u->username ) - 1 );
-	strncpy( u->password, a->pass, sizeof( u->password ) - 1 );
-	if( a->server) strncpy( u->proto_opt[0], a->server, sizeof( u->proto_opt[0] ) - 1 );
+	strlcpy( u->username, a->user, sizeof( u->username ) );
+	strlcpy( u->password, a->pass, sizeof( u->password ) );
+	if( a->server) strlcpy( u->proto_opt[0], a->server, sizeof( u->proto_opt[0] ) );
 	
 	a->gc = (struct gaim_connection *) u; /* Bit hackish :-/ */
 	a->reconnect = 0;
