projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ffb81b
)
Minor fix to prompt generation.
author
Eric S. Raymond
<esr@thyrsus.com>
Wed, 22 Mar 2023 21:03:50 +0000
(17:03 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Wed, 22 Mar 2023 21:03:50 +0000
(17:03 -0400)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 7a6c6c868542fc55cbf0960bd02ce52f1bc1a161..b318cd0f5ce948593696bb3bbe3a4595ed33c24c 100644
(file)
--- 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;
}
}
}