From 4f161e3abeecee0722487e9d61a85f6c953d11bd Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 16 Jan 2015 16:50:24 -0300 Subject: msn_ns_send_adl_1: Fix alloc_strlen coverity warning Allocating insufficient memory for the terminating null of the string --- protocols/msn/ns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/msn/ns.c') diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index c4b6c462..7646e237 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -880,7 +880,7 @@ static gboolean msn_ns_send_adl_1( gpointer key, gpointer value, gpointer data ) struct bee_user *bu = value; struct msn_buddy_data *bd = bu->data; struct msn_data *md = bu->ic->proto_data; - char handle[strlen(bu->handle)]; + char handle[strlen(bu->handle) + 1]; char *domain; char l[4]; -- cgit v1.2.3