$NetBSD: patch-ad,v 1.6 2001/11/11 07:54:56 jlam Exp $

--- cmd.c.orig	Sun Nov 11 02:44:56 2001
+++ cmd.c
@@ -26,6 +26,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <signal.h>
 #include <unistd.h>
 #include "version.h"
@@ -160,7 +161,7 @@
 printf("inputstr = %s\n",inputstr);
       if (strncmp (inputstr, "compile", 7) == 0) {
 printf("calling genbook.\n");
-        genbook ();
+        genbook (booksrc, bookbin);
       } else if (strcmp (inputstr, "on") == 0) {
 	bookmode = BOOKBEST;
 	printf("book now on.\n");
