mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
2020526ca5
PR: 220806 Submitted by: jbeich, Martin Birgmeier
16 lines
502 B
C
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;
|