Move most build instructions into INSTALL.adoc.
[open-adventure.git] / main.c
diff --git a/main.c b/main.c
index 84eca5758177d5d262d015186fb02bb5e3aeb80b..ce383a0fbd2366cf2c86ffc09ced36c8cdc1795f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -21,7 +21,6 @@
 #include <signal.h>
 #include <string.h>
 #include "advent.h"
-#include "linenoise/linenoise.h"
 #include "dungeon.h"
 
 #define DIM(a) (sizeof(a)/sizeof(a[0]))
@@ -115,8 +114,6 @@ int main(int argc, char *argv[])
         }
     }
 
-    linenoiseHistorySetMaxLen(350);
-
     /*  Initialize game variables */
     long seedval = initialise();
 
@@ -1036,7 +1033,7 @@ L2600:
         }
 
         strncpy(inputbuf, input, LINESIZE - 1);
-        linenoiseFree(input);
+        free(input);
 
         long tokens[4];
         tokenize(inputbuf, tokens);