diff options
author | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-07 19:24:03 +0000 |
---|---|---|
committer | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-07 19:24:03 +0000 |
commit | e4b44bb0c6d412fe8d7e9f4877fe7f55356cb56d (patch) | |
tree | 3c0444df50be83ba28bcf67391c28094836166f2 /src | |
parent | 686a6ac97083946246fad16390c308fd84a62c23 (diff) | |
download | hercules-e4b44bb0c6d412fe8d7e9f4877fe7f55356cb56d.tar.gz hercules-e4b44bb0c6d412fe8d7e9f4877fe7f55356cb56d.tar.bz2 hercules-e4b44bb0c6d412fe8d7e9f4877fe7f55356cb56d.tar.xz hercules-e4b44bb0c6d412fe8d7e9f4877fe7f55356cb56d.zip |
Removed unnecessary reference operator from scanf calls passing character strings as arguments in adduser tool.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14566 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/tool/adduser.c | 6 |
1 files changed, 3 insertions, 3 deletions
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+"); |