summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 951d6da9..b2eda9c0 100644
--- a/src/main.h
+++ b/src/main.h
@@ -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;