aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 04:11:32 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 04:11:32 +0100
commit233d7bbf37444771a90a6cad885eb40a42b21940 (patch)
tree2839d43953699366e61e2aeac9a872b1be9ac9de
parent378ff84d1ecf4bb18eb90de6904d8a0210b79b83 (diff)
Deleted unneeded curly braces
-rw-r--r--FICS/fics_addplayer.c7
1 files changed, 4 insertions, 3 deletions
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] = '$';