diff options
author | valaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-14 17:11:10 +0000 |
---|---|---|
committer | valaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-14 17:11:10 +0000 |
commit | f9db46c8fa41c2cfe599ced9787263ff22e6cb14 (patch) | |
tree | e0831cee79c4d6cd2b072f09e5929ec44697b426 | |
parent | 9b255549bb0d8e5c499a88564d1f91ea400a2cde (diff) | |
download | hercules-f9db46c8fa41c2cfe599ced9787263ff22e6cb14.tar.gz hercules-f9db46c8fa41c2cfe599ced9787263ff22e6cb14.tar.bz2 hercules-f9db46c8fa41c2cfe599ced9787263ff22e6cb14.tar.xz hercules-f9db46c8fa41c2cfe599ced9787263ff22e6cb14.zip |
Initialized password variable in login.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@176 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog.txt | 1 | ||||
-rw-r--r-- | src/login/login.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog.txt b/Changelog.txt index 400d37918..e5b84c77d 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,6 @@ Date Added 11/14 + * Initialized password variable in login.c. [Valaris] * Added zeny_from_mobs option. [Valaris] * Corrected the file type attribute on most of the files in three which fixes the newline issues between linux and dos [MouseJstr] diff --git a/src/login/login.c b/src/login/login.c index c5921902a..b28a48a51 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -3059,7 +3059,7 @@ int parse_login(int fd) { } else { struct login_session_data *ld = session[fd]->session_data; if (RFIFOW(fd,2) == 0) { // non encrypted password - unsigned char* password; + unsigned char* password=""; memcpy(password, RFIFOP(fd,4), 24); password[24] = '\0'; remove_control_chars(password); |