From 9c801f9ab6d51e9fd0ebc3bccf6b3c1210a4879d Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 24 Mar 2022 22:46:43 +0100 Subject: [PATCH] inc size of name, max length names crash on addrecent due to buffer overflow --- src/structs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structs.h b/src/structs.h index 4954a1b..08e47db 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1276,7 +1276,7 @@ struct happyhour { struct recent_player { int vnum; /* The ID number for this instance */ - char name[MAX_NAME_LENGTH]; /* The char name of the player */ + char name[MAX_NAME_LENGTH+1];/* The char name of the player */ bool new_player; /* Is this a new player? */ bool copyover_player; /* Is this a player that was on during the last copyover? */ time_t time; /* login time */