From: Eric S. Raymond Date: Wed, 22 Mar 2023 21:03:50 +0000 (-0400) Subject: Minor fix to prompt generation. X-Git-Tag: 1.15~38 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=1e05134b477b817ebe5032ee74b1832b21bb8e1e;p=open-adventure.git Minor fix to prompt generation. --- diff --git a/main.c b/main.c index 7a6c6c8..b318cd0 100644 --- a/main.c +++ b/main.c @@ -82,9 +82,9 @@ char *myreadline(const char *prompt) } else { char *ln = fgets(buf, LINESIZE, settings.scriptfp); if (ln != NULL) { - fputs(PROMPT, stdout); + fputs(prompt, stdout); fputs(ln, stdout); - return ln; + return ln; } } }