~dax/xdcc-legacy

daa7119db375ddc5deeff7eab508ee5dd42f2b3f — dax 1 year, 4 months ago 4b880cb
insert NULL terminator in generated NICKs
1 files changed, 3 insertions(+), 1 deletions(-)

M main.c
M main.c => main.c +3 -1
@@ 27,10 27,12 @@ static int noconfirm = 0;
static void
rand_nick(char *nick)
{
	for (int i=0; i < sizeof(nick); i++)
	size_t len = sizeof(nick);
	for (int i=0; i < len-1; i++)
	{
		nick[i] = rand() % 25 + 97;
	}
	nick[len-1] = '\0';
}