diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-09 03:30:09 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-09 03:30:09 -0700 |
commit | 7cae1ae415dd98c9d83dc4cd76b350c1a36a2bbf (patch) | |
tree | 45de91867c4ded9bfbc9b056d472f58377e291d8 | |
parent | eca2100312bbe628d11bfb3b0454913653130baf (diff) |
Make key_reader build and work
-rw-r--r-- | Makefile.in | 4 | ||||
-rw-r--r-- | key_reader.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index ce88be33..676a05ce 100644 --- a/Makefile.in +++ b/Makefile.in @@ -792,8 +792,8 @@ fish_indent: $(FISH_INDENT_OBJS) # Neat little program to show output from terminal # -key_reader: key_reader.o input_common.o common.o env_universal.o env_universal_common.o wutil.o - $(CXX) key_reader.o input_common.o common.o env_universal.o env_universal_common.o wutil.o $(LDFLAGS_FISH) -o $@ +key_reader: key_reader.o input_common.o common.o env_universal.o env_universal_common.o wutil.o iothread.o + $(CXX) key_reader.o input_common.o common.o env_universal.o env_universal_common.o wutil.o iothread.o $(LDFLAGS_FISH) -o $@ # diff --git a/key_reader.cpp b/key_reader.cpp index bb092f99..c61e80b7 100644 --- a/key_reader.cpp +++ b/key_reader.cpp @@ -15,6 +15,7 @@ #include <locale.h> #include <termcap.h> +#include "common.h" #include "fallback.h" #include "input_common.h" @@ -36,7 +37,7 @@ int main( int argc, char **argv) { static char term_buffer[2048]; char *termtype = getenv ("TERM"); - char *tbuff = malloc( sizeof(char)*9999); + char *tbuff = new char[9999]; char *res; tgetent( term_buffer, termtype ); |