diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-26 22:36:41 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-26 22:36:41 +0000 |
commit | 6096ce0b42a3eee07dc70ae5ef489aa4c30bf515 (patch) | |
tree | e91f8afd3b7b8b80f0c55aae07f7a478f469c37a /src/tool/adduser.c | |
parent | 23e1b7db5ba2277a406fc84c30e87c324a83097c (diff) | |
download | hercules-6096ce0b42a3eee07dc70ae5ef489aa4c30bf515.tar.gz hercules-6096ce0b42a3eee07dc70ae5ef489aa4c30bf515.tar.bz2 hercules-6096ce0b42a3eee07dc70ae5ef489aa4c30bf515.tar.xz hercules-6096ce0b42a3eee07dc70ae5ef489aa4c30bf515.zip |
* Merged changes from trunk [14496:14630/trunk].
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/renewal@14632 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/tool/adduser.c')
-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+"); |