diff options
author | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-10-04 16:06:52 +0200 |
---|---|---|
committer | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-10-04 16:06:52 +0200 |
commit | d22fb7e1c12eaeeef90af97386fe3c5c84a0a9eb (patch) | |
tree | d9461cb9e8c24c99d4247f1272c0f7c36e5d338b /console.c | |
parent | 4c8978d341731e5aa49bc877214d145bfde0bc20 (diff) | |
download | MAC-Telnet-d22fb7e1c12eaeeef90af97386fe3c5c84a0a9eb.tar.gz MAC-Telnet-d22fb7e1c12eaeeef90af97386fe3c5c84a0a9eb.zip |
Security fixes, etc. strn* functions does not terminate strings if they exceed the length parameter.
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -68,5 +68,5 @@ int getTerminalSize(unsigned short *width, unsigned short *height) { *width = ws.ws_col; *height = ws.ws_row; - return 1; + return 0; } |