summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/tool/adduser.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index db98a8e14..dfd7d57b3 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -1,6 +1,7 @@
Date Added
2010/12/07
+ * Removed unnecessary reference operator from scanf calls passing character strings as arguments in adduser tool. [Paradox924X]
* Revert of r14564. The value wasn't an arbitrary account id but rather the file format version. Added comment specifying this. [Paradox924X]
* Removed arbitrary account id from atop account.txt (Since r13000). [Paradox924X]
* Changed almost all instances of sprintf() to snprintf(). [Paradox924X]
diff --git a/src/tool/adduser.c b/src/tool/adduser.c
index 2c7461930..5f4dfb6a5 100644
--- a/src/tool/adduser.c
+++ b/src/tool/adduser.c
@@ -75,7 +75,7 @@ int main(int argc, char *argv[])
strcpy(username, "");
while (strlen(username) < 4 || strlen(username) > 23) {
printf("Enter an username (4-23 characters): ");
- scanf("%s", &username);
+ scanf("%s", username);
username[23] = 0;
remove_control_chars(username);
}
@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
strcpy(password, "");
while (strlen(password) < 4 || strlen(password) > 23) {
printf("Enter a password (4-23 characters): ");
- scanf("%s", &password);
+ scanf("%s", password);
password[23] = 0;
remove_control_chars(password);
}
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
strcpy(sex, "");
while (strcmp(sex, "F") != 0 && strcmp(sex, "M") != 0) {
printf("Enter a gender (M for male, F for female): ");
- scanf("%s", &sex);
+ scanf("%s", sex);
}
FPaccout = fopen(account_txt, "r+");