aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/ns.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-01-16 16:50:24 -0300
committerdequis <dx@dxzone.com.ar>2015-01-16 16:50:24 -0300
commit4f161e3abeecee0722487e9d61a85f6c953d11bd (patch)
tree8a00c6c364149c22528cbb38628b50b54be346d0 /protocols/msn/ns.c
parenta6cd799ce11c9792ed3e817d947ccef19cc6aee0 (diff)
msn_ns_send_adl_1: Fix alloc_strlen coverity warning
Allocating insufficient memory for the terminating null of the string
Diffstat (limited to 'protocols/msn/ns.c')
-rw-r--r--protocols/msn/ns.c2
1 files changed, 1 insertions, 1 deletions
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];