summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-04 16:06:52 +0200
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-04 16:06:52 +0200
commitd22fb7e1c12eaeeef90af97386fe3c5c84a0a9eb (patch)
treed9461cb9e8c24c99d4247f1272c0f7c36e5d338b /console.c
parent4c8978d341731e5aa49bc877214d145bfde0bc20 (diff)
downloadMAC-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console.c b/console.c
index 3592eb6..786d63c 100644
--- a/console.c
+++ b/console.c
@@ -68,5 +68,5 @@ int getTerminalSize(unsigned short *width, unsigned short *height) {
*width = ws.ws_col;
*height = ws.ws_row;
- return 1;
+ return 0;
}