summaryrefslogtreecommitdiffstats
path: root/sail
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-03-14 23:12:20 +0000
committerdholland <dholland@NetBSD.org>2009-03-14 23:12:20 +0000
commit46d82f438f3ef522450f4282d4f9824144e3e538 (patch)
tree0b049fa541a9683863304d122cf8ef0f197acc68 /sail
parent114ad9c48a887df639da818c9fcbcca45edfd64c (diff)
downloadbsdgames-darwin-46d82f438f3ef522450f4282d4f9824144e3e538.tar.gz
bsdgames-darwin-46d82f438f3ef522450f4282d4f9824144e3e538.tar.zst
bsdgames-darwin-46d82f438f3ef522450f4282d4f9824144e3e538.zip
Don't crosswire the two kinds of path names, and don't croak on
scenario numbers > 99.
Diffstat (limited to 'sail')
-rw-r--r--sail/sync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sail/sync.c b/sail/sync.c
index 0f689110..4b8a0d31 100644
--- a/sail/sync.c
+++ b/sail/sync.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sync.c,v 1.31 2009/03/14 22:54:05 dholland Exp $ */
+/* $NetBSD: sync.c,v 1.32 2009/03/14 23:12:20 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: sync.c,v 1.31 2009/03/14 22:54:05 dholland Exp $");
+__RCSID("$NetBSD: sync.c,v 1.32 2009/03/14 23:12:20 dholland Exp $");
#endif
#endif /* not lint */
@@ -145,8 +145,8 @@ static const char SF[] = _PATH_SYNC;
static const char LF[] = _PATH_LOCK;
static char sync_buf[BUFSIZE];
static char *sync_bp = sync_buf;
-static char sync_lock[sizeof SF];
-static char sync_file[sizeof LF];
+static char sync_lock[sizeof LF+2];
+static char sync_file[sizeof SF+2];
static long sync_seek;
static FILE *sync_fp;