d7367484a6
From a slightly newer "upstream" version that is floating around on the net. Add missing includes.
29 lines
1017 B
Plaintext
29 lines
1017 B
Plaintext
$OpenBSD: patch-bible_c,v 1.1 2010/08/04 14:05:46 naddy Exp $
|
|
--- bible.c.orig Mon Dec 12 20:30:47 1994
|
|
+++ bible.c Wed Aug 4 01:16:55 2010
|
|
@@ -137,6 +137,7 @@
|
|
#include <ctype.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include "tsl.h"
|
|
#include "brl.h"
|
|
#include "version.h"
|
|
@@ -151,6 +152,7 @@
|
|
|
|
static char rcs_ident[]="@(#)$Header: /home/cvs/ports/misc/brs/patches/Attic/patch-bible_c,v 1.1 2010/08/04 14:05:46 naddy Exp $";
|
|
|
|
+static char gen1_1[]="Gen1:1"; /* Avoid use of literal string in call */
|
|
|
|
char *myname; /* Program Name */
|
|
int mem_limit; /* Limit on buffer space used by BRL */
|
|
@@ -977,7 +979,7 @@ char **argv;
|
|
/* read from stdin */
|
|
printf( "%s: %s\n", myname, release_version );
|
|
printf( "Hit '?' for help.\n" );
|
|
- brl_printverse( "Gen1:1", pretty_printing, line_width, outf );
|
|
+ brl_printverse( gen1_1, pretty_printing, line_width, outf );
|
|
prompter();
|
|
while(fgets(line, VSPECSZ, stdin) != NULL) {
|
|
user_input( line );
|