diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-08-25 21:07:28 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-08-25 21:07:28 +0000 |
commit | 941e0cfda282b2461e500fcdf5828a7e20bf6da6 (patch) | |
tree | 16b392cb9c57fefc621084c011ec0b724e84d128 /src/main.cpp | |
parent | 9ba130f4628d8e52ebd50b810e761a81f69c0c4a (diff) | |
download | mana-941e0cfda282b2461e500fcdf5828a7e20bf6da6.tar.gz mana-941e0cfda282b2461e500fcdf5828a7e20bf6da6.tar.bz2 mana-941e0cfda282b2461e500fcdf5828a7e20bf6da6.tar.xz mana-941e0cfda282b2461e500fcdf5828a7e20bf6da6.zip |
Adding min and max length check for password, more code cleanups in login and removing possible buffer overflows by replacing some global char[] by std::strings.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index d2a8d964..84e8b73a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -74,11 +74,11 @@ Spriteset *hairset = NULL, *playerset = NULL; Image *login_wallpaper = NULL; Graphics *graphics; -char username[LEN_USERNAME]; -char password[LEN_PASSWORD]; +std::string username; +std::string password; int map_address, char_ID; short map_port; -char map_name[16]; +std::string map_name; unsigned char state; unsigned char screen_mode; volatile int framesToDraw = 0; |