openbsd-ports/net/bitlbee/patches/patch-protocols_oscar_info_c
martynas 117ac1f407 update to bitlbee-1.0.4
ok simon@ and maintainer Andrew Dalgleish;  tested by Wiktor Izdebski
2007-11-19 11:44:32 +00:00

22 lines
893 B
Plaintext

$OpenBSD: patch-protocols_oscar_info_c,v 1.2 2007/11/19 11:44:33 martynas Exp $
--- protocols/oscar/info.c.orig Mon Aug 20 16:27:15 2007
+++ protocols/oscar/info.c Mon Nov 19 13:39:01 2007
@@ -26,7 +26,7 @@ int aim_getinfo(aim_session_t *sess, aim_conn_t *conn,
if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 12+1+strlen(sn))))
return -ENOMEM;
- strncpy(privdata.sn, sn, sizeof(privdata.sn));
+ strlcpy(privdata.sn, sn, sizeof(privdata.sn));
privdata.infotype = infotype;
snacid = aim_cachesnac(sess, 0x0002, 0x0005, 0x0000, &privdata, sizeof(struct aim_priv_inforeq));
@@ -718,7 +718,7 @@ int locate_modfirst(aim_session_t *sess, aim_module_t
mod->toolid = 0x0110;
mod->toolversion = 0x0629;
mod->flags = 0;
- strncpy(mod->name, "locate", sizeof(mod->name));
+ strlcpy(mod->name, "locate", sizeof(mod->name));
mod->snachandler = snachandler;
return 0;