tFortune fix - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit eeb7312231d91d32c561fd9dd07aeed554ba998d
DIR parent 478bbc757a967a814c86f1448843ff72506b3b68
HTML Author: rsc <devnull@localhost>
Date: Fri, 26 Mar 2004 03:07:52 +0000
Fortune fix
Diffstat:
M src/cmd/dict/dict.h | 4 ++++
M src/cmd/fortune.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/dict/dict.h b/src/cmd/dict/dict.h
t@@ -5,6 +5,8 @@ enum { NONE=0xe800, /* Emit nothing */
SPCS, /* Start of special character name */
PAR, /* Newline, indent */
LIGS, /* Start of ligature codes */
+
+/* need to keep in sync with utils.c:/ligtab */
LACU=LIGS, /* Acute (´) ligatures */
LGRV, /* Grave (ˋ) ligatures */
LUML, /* Umlaut (¨) ligatures */
t@@ -23,6 +25,8 @@ enum { NONE=0xe800, /* Emit nothing */
LLEN, /* Lenis (ʼ) ligatures */
LBRB, /* Breve below (̮) ligatures */
LIGE, /* End of ligature codes */
+
+/* need to keep in sync with utils.c:/multitab */
MULTI, /* Start of multi-rune codes */
MAAS=MULTI, /* ʽα */
MALN, /* ʼα */
DIR diff --git a/src/cmd/fortune.c b/src/cmd/fortune.c
t@@ -22,7 +22,7 @@ main(int argc, char *argv[])
Biobuf *f, g;
index = unsharp(index);
- fortunes = unsharp(index);
+ fortunes = unsharp(fortunes);
newindex = 0;
oldindex = 0;