From 233d7bbf37444771a90a6cad885eb40a42b21940 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 04:11:32 +0100 Subject: Deleted unneeded curly braces --- FICS/fics_addplayer.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'FICS') diff --git a/FICS/fics_addplayer.c b/FICS/fics_addplayer.c index 1417251..fb7e831 100644 --- a/FICS/fics_addplayer.c +++ b/FICS/fics_addplayer.c @@ -110,10 +110,11 @@ main(int argc, char *argv[]) stolower(parray[p].login); parray[p].fullName = xstrdup(fname); parray[p].emailAddress = xstrdup(email); - for (i = 0; i < PASSLEN; i++) { - password[i] = 'a' + rand() % 26; - } + + for (i = 0; i < PASSLEN; i++) + password[i] = ('a' + rand() % 26); password[i] = '\0'; + salt[0] = '$'; salt[1] = '1'; salt[2] = '$'; -- cgit v1.2.3