summaryrefslogtreecommitdiff
path: root/appl/cmd/fortune.b
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-23 00:30:12 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-23 00:30:12 +0000
commit6e425a9de8c003b5a733621a6b6730ec3cc902b8 (patch)
tree314123bcab78ff295f38f85f31dc141e5fe22d15 /appl/cmd/fortune.b
parent74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a (diff)
20061220
Diffstat (limited to 'appl/cmd/fortune.b')
-rwxr-xr-xappl/cmd/fortune.b4
1 files changed, 2 insertions, 2 deletions
diff --git a/appl/cmd/fortune.b b/appl/cmd/fortune.b
index 7368e992..daf48185 100755
--- a/appl/cmd/fortune.b
+++ b/appl/cmd/fortune.b
@@ -52,7 +52,7 @@ init(nil: ref Draw->Context, args: list of string)
if(ix != nil){
(nil, ixbuf) := sys->fstat(ix);
(nil, fbuf) := sys->fstat(f.fd);
- if(fbuf.mtime > ixbuf.mtime){
+ if(fbuf.mtime >= ixbuf.mtime){
ix = nil;
nix = sys->create(findex, Sys->OWRITE, 8r666);
}else
@@ -71,7 +71,7 @@ init(nil: ref Draw->Context, args: list of string)
}else{
rand->init(truerand());
offs := 0;
- g := bufio->fopen(ix, Bufio->ORDWR);
+ g := bufio->fopen(nix, Bufio->ORDWR);
for(i := 1;; i++){
if(nix != nil)
offs = int f.offset();