summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/entries.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-08-16 16:34:20 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-08-16 16:34:20 +0000
commitc54b4d6980b5d5a0a66e819ef0c0b8df82eee4a1 (patch)
tree7c3919cb4584f1da39809cee21fe66faa469b5b7 /usr.bin/cvs/entries.c
parent8b36809a520b18156d0b2fdbaebf123e7b11f2c6 (diff)
#define CVS_ENT_MAXLINELEN 1024
.. as the maximum length of a line in an Entries file, and use it. problem spotted a while ago by mpech@. ok jfb joris
Diffstat (limited to 'usr.bin/cvs/entries.c')
-rw-r--r--usr.bin/cvs/entries.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c
index c014774aca6..b139b80b16d 100644
--- a/usr.bin/cvs/entries.c
+++ b/usr.bin/cvs/entries.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entries.c,v 1.44 2005/08/12 18:46:53 xsa Exp $ */
+/* $OpenBSD: entries.c,v 1.45 2005/08/16 16:34:19 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -53,7 +53,8 @@ cvs_ent_open(const char *dir, int flags)
{
size_t len;
int exists, nodir;
- char cdpath[MAXPATHLEN], entpath[MAXPATHLEN], ebuf[128], mode[4];
+ char cdpath[MAXPATHLEN], ebuf[CVS_ENT_MAXLINELEN], entpath[MAXPATHLEN];
+ char mode[4];
FILE *fp;
struct stat st;
struct cvs_ent *ent;