1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/games/crafty/files/patch-option.c
Johan van Selst 2020526ca5 Remove profile options to fix build with Clang
PR:		220806
Submitted by:	jbeich, Martin Birgmeier
2018-02-09 16:09:42 +00:00

16 lines
502 B
C

--- option.c.orig 2016-10-28 03:11:42 UTC
+++ option.c
@@ -978,9 +978,11 @@ int Option(TREE * RESTRICT tree) {
else if (OptionMatch("help", *args)) {
FILE *helpfile;
char *readstat = (char *) -1;
+ char fname[128];
int lines = 0;
- helpfile = fopen("crafty.hlp", "r");
+ sprintf(fname, "%s/crafty.hlp", book_path);
+ helpfile = fopen(fname, "r");
if (!helpfile) {
printf("ERROR. Unable to open \"crafty.hlp\" -- help unavailable\n");
return 1;