diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-11-26 16:39:21 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-11-26 16:39:21 +0000 |
commit | 93b7fabac8e250b89227d1d183081326da942ade (patch) | |
tree | 058f2bd0a762c4e9750339ba6d20731798af8279 /src/main.h | |
parent | 428c4cc8bba2e8a385a6f51d3788b7ab3c9ce4c7 (diff) | |
download | mana-93b7fabac8e250b89227d1d183081326da942ade.tar.gz mana-93b7fabac8e250b89227d1d183081326da942ade.tar.bz2 mana-93b7fabac8e250b89227d1d183081326da942ade.tar.xz mana-93b7fabac8e250b89227d1d183081326da942ade.zip |
fix for tmw crash in login() due to too long username in tmw.ini (>25chars) (kth5)
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -59,6 +59,16 @@ #define CHAR_DEL 5 #define GAME 6 +/* length definitions for several char[]s in order + * to be able to use strncpy instead of strcpy for + * security and stability reasons + * + * best regards - kth5 */ +#define LEN_USERNAME 25 +#define LEN_PASSWORD 25 + + + typedef struct { int address; short port; |