=== modified file 'termkey.c' --- termkey.c 2008-02-10 20:29:59 +0000 +++ termkey.c 2008-02-10 20:24:25 +0000 @@ -640,11 +640,8 @@ void termkey_pushinput(termkey_t *tk, unsigned char *input, size_t inputlen) { if(tk->buffstart + tk->buffcount + inputlen > tk->buffsize) { - while(tk->buffstart + tk->buffcount + inputlen > tk->buffsize) - tk->buffsize *= 2; - - unsigned char *newbuffer = realloc(tk->buffer, tk->buffsize); - tk->buffer = newbuffer; + fprintf(stderr, "TODO! Extend input buffer!\n"); + exit(0); } // Not strcpy just in case of NUL bytes