From dcd1527a1125eef0e9171f440276522476624fd8 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 2 Apr 2013 18:59:00 +0800 Subject: [PATCH 1/2] fix tabs --- random.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/random.c b/random.c index f935e21..1f687a2 100644 --- a/random.c +++ b/random.c @@ -157,9 +157,9 @@ static void write_urandom() /* This is opportunistic, don't worry about failure */ unsigned char buf[INIT_SEED_SIZE]; FILE *f = fopen(DROPBEAR_URANDOM_DEV, "w"); - if (!f) { - return; - } + if (!f) { + return; + } genrandom(buf, sizeof(buf)); fwrite(buf, sizeof(buf), 1, f); fclose(f); From a6eb824950e6d938fa47c1f9fa1880b652d51833 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 2 Apr 2013 19:11:13 +0800 Subject: [PATCH 2/2] add IUTF8 --- termcodes.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/termcodes.c b/termcodes.c index d59505c..490e6ce 100644 --- a/termcodes.c +++ b/termcodes.c @@ -107,8 +107,14 @@ const struct TermCode termcodes[MAX_TERMCODE+1] = { #else {0, 0}, #endif - {0, 0}, /* 42 */ + /* IUTF8 isn't standardised in rfc4254 but is likely soon. + * Implemented by linux and darwin */ +#ifdef IUTF8 + {IUTF8, TERMCODE_INPUT}, +#else {0, 0}, +#endif + {0, 0}, /* 43 */ {0, 0}, {0, 0}, {0, 0},