openbsd-ports/lang/ucblogo/patches/patch-init_c

26 lines
780 B
Plaintext

$OpenBSD: patch-init_c,v 1.1.1.1 2006/06/01 05:58:15 jolan Exp $
--- init.c.orig Mon May 8 15:39:40 2006
+++ init.c Mon May 8 15:38:59 2006
@@ -484,8 +484,8 @@ void init(void) {
i = 0;
#endif
- logolib = getenv("LOGOLIB");
- helpfiles = getenv("LOGOHELP");
+ logolib = "@logopath@";
+ helpfiles = "@logohelp@";
csls = getenv("CSLS");
editor = getenv("EDITOR");
#ifdef WIN32
@@ -669,8 +669,8 @@ void init(void) {
the_generation = cons(NIL, NIL);
Not_Enough_Node = cons(NIL, NIL);
- sprintf(linebuf,"%s%sMessages", logolib, separator);
- fp = fopen("Messages", "r");
+ sprintf(linebuf,"%s%smessages", logolib, separator);
+ fp = fopen("messages", "r");
if (fp == NULL)
fp = fopen(linebuf, "r");
if (fp == NULL) {