From 7ae14aca46d6299d2ed49640e5eb942a207b3a68 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 8 Jul 2010 13:49:08 +0200 Subject: Fixed an overflow issue with memset() in eurephiadm --- eurephiadm/eurephiadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eurephiadm/eurephiadm.c b/eurephiadm/eurephiadm.c index 564a4a7..340ac08 100644 --- a/eurephiadm/eurephiadm.c +++ b/eurephiadm/eurephiadm.c @@ -285,7 +285,7 @@ static eurephiaSESSION *do_login(eurephiaCTX *ctx, eurephiaVALUES *cfg, const ch memset(&username, 0, 33); memset(&password, 0, 33); if( (tmp = eGet_value(cfg, "username")) == NULL ) { - memset(username, 0, 34); + memset(username, 0, 33); get_console_input(username, 32, "User:", 0); } else { strncpy(username, tmp, 32); -- cgit