1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 13:26:44 +02:00

Replace instances of unsafe atoi function with safe counterpart

This commit is contained in:
Jfreegman
2015-09-02 19:41:21 -04:00
parent ffcc804efe
commit f295352495
4 changed files with 47 additions and 20 deletions

View File

@ -49,6 +49,10 @@
#define KEY_IDENT_DIGITS 3 /* number of hex digits to display for the pub-key based identifier */
#define TIME_STR_SIZE 32
#ifndef MAX_PORT_RANGE
#define MAX_PORT_RANGE 65535
#endif
/* ASCII key codes */
#define T_KEY_ESC 0x1B /* ESC key */
#define T_KEY_KILL 0x0B /* ctrl-k */