summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/tag.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-01-16 06:39:28 +0000
committerderaadt <deraadt@openbsd.org>2015-01-16 06:39:28 +0000
commitb9fc9a728fce9c4289b7e9a992665e28d5629a54 (patch)
tree72b2433e418dfa1aef5fcf8305617b97979a25d8 /usr.bin/cvs/tag.c
parentimprove checksum parsing slightly. now handles filenames with spaces. (diff)
downloadwireguard-openbsd-b9fc9a728fce9c4289b7e9a992665e28d5629a54.tar.xz
wireguard-openbsd-b9fc9a728fce9c4289b7e9a992665e28d5629a54.zip
Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Diffstat (limited to 'usr.bin/cvs/tag.c')
-rw-r--r--usr.bin/cvs/tag.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/tag.c b/usr.bin/cvs/tag.c
index 41c6b643820..a7a5fe47e33 100644
--- a/usr.bin/cvs/tag.c
+++ b/usr.bin/cvs/tag.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tag.c,v 1.80 2010/10/28 12:30:27 tobias Exp $ */
+/* $OpenBSD: tag.c,v 1.81 2015/01/16 06:40:07 deraadt Exp $ */
/*
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
*
@@ -65,7 +65,7 @@ int
cvs_tag(int argc, char **argv)
{
int ch, flags, i;
- char repo[MAXPATHLEN];
+ char repo[PATH_MAX];
char *arg = ".";
struct cvs_recursion cr;
struct trigger_list *line_list;
@@ -186,7 +186,7 @@ cvs_tag(int argc, char **argv)
cr.flags = flags;
- cvs_get_repository_name(".", repo, MAXPATHLEN);
+ cvs_get_repository_name(".", repo, PATH_MAX);
line_list = cvs_trigger_getlines(CVS_PATH_TAGINFO, repo);
if (line_list != NULL) {
TAILQ_INIT(&files_info);