summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/entries.c
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-08-16 16:34:19 +0000
committerxsa <xsa@openbsd.org>2005-08-16 16:34:19 +0000
commit5190dc2fa973b64e65a67d3957ce971aa546c25c (patch)
treebc3527f189ce58b486609e990f3bfa34fe7e6f5e /usr.bin/cvs/entries.c
parentin case we're pretending to install, there's no borked package to create. (diff)
downloadwireguard-openbsd-5190dc2fa973b64e65a67d3957ce971aa546c25c.tar.xz
wireguard-openbsd-5190dc2fa973b64e65a67d3957ce971aa546c25c.zip
#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;