summaryrefslogtreecommitdiff
path: root/games/canfield
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-11-24 02:53:40 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-11-24 02:53:40 +0000
commitcd1796ef95440c3b155f3bb473c00a2d03170090 (patch)
treee4a2f6b564d8a99891106d29dcaa9c60653f3d1a /games/canfield
parent1c6c7b3cd26aa93f4d699688b465f3b291b78127 (diff)
change score file name to .cfscores so it's not taking up valuable space
in my home directory of serious business files
Diffstat (limited to 'games/canfield')
-rw-r--r--games/canfield/canfield/canfield.c4
-rw-r--r--games/canfield/cfscores/cfscores.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/games/canfield/canfield/canfield.c b/games/canfield/canfield/canfield.c
index fcd2186dbd8..b9f1a814451 100644
--- a/games/canfield/canfield/canfield.c
+++ b/games/canfield/canfield/canfield.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: canfield.c,v 1.16 2015/11/24 02:51:50 tedu Exp $ */
+/* $OpenBSD: canfield.c,v 1.17 2015/11/24 02:53:39 tedu Exp $ */
/* $NetBSD: canfield.c,v 1.7 1995/05/13 07:28:35 jtc Exp $ */
/*
@@ -1631,7 +1631,7 @@ initall(void)
if (!getenv("HOME"))
return;
snprintf(scorepath, sizeof(scorepath), "%s/%s", getenv("HOME"),
- "cfscores");
+ ".cfscores");
dbfd = open(scorepath, O_RDWR | O_CREAT, 0644);
if (dbfd < 0)
return;
diff --git a/games/canfield/cfscores/cfscores.c b/games/canfield/cfscores/cfscores.c
index 35ef49177f0..39cfb5d5b1d 100644
--- a/games/canfield/cfscores/cfscores.c
+++ b/games/canfield/cfscores/cfscores.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cfscores.c,v 1.16 2015/11/24 02:51:50 tedu Exp $ */
+/* $OpenBSD: cfscores.c,v 1.17 2015/11/24 02:53:39 tedu Exp $ */
/* $NetBSD: cfscores.c,v 1.3 1995/03/21 15:08:37 cgd Exp $ */
/*
@@ -65,7 +65,7 @@ main(int argc, char *argv[])
if (!getenv("HOME"))
return;
snprintf(scorepath, sizeof(scorepath), "%s/%s", getenv("HOME"),
- "cfscores");
+ ".cfscores");
dbfd = open(scorepath, O_RDONLY);
if (dbfd < 0)
err(2, "%s", scorepath);