From 05b44da70c6a133676ded338a707465f32c09e09 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 24 Jun 2008 10:15:47 +0100 Subject: Fixed a bug with nickname handling. I really should kill all fixed-length strings in BitlBee... --- nick.c | 1 + 1 file changed, 1 insertion(+) (limited to 'nick.c') diff --git a/nick.c b/nick.c index 52f9e5ad..5d7dc8a9 100644 --- a/nick.c +++ b/nick.c @@ -46,6 +46,7 @@ void nick_set( account_t *acc, const char *handle, const char *nick ) char *store_handle, *store_nick = g_malloc( MAX_NICK_LENGTH + 1 ); store_handle = clean_handle( handle ); + store_nick[MAX_NICK_LENGTH] = 0; strncpy( store_nick, nick, MAX_NICK_LENGTH ); nick_strip( store_nick ); -- cgit v1.2.3