summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/import.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-16 06:40:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-16 06:40:24 +0000
commit315054f4737a39489e0a14f3a92bff61f1592832 (patch)
tree62bf010653374ce09b6beb4dfa0414a91457233b /usr.bin/cvs/import.c
parent79e3d817585ca08a91e30ad14abe43e2ab70295f (diff)
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/import.c')
-rw-r--r--usr.bin/cvs/import.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/import.c b/usr.bin/cvs/import.c
index 04b8c2f2410..20a6b6eaed6 100644
--- a/usr.bin/cvs/import.c
+++ b/usr.bin/cvs/import.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: import.c,v 1.103 2010/09/23 18:10:16 nicm Exp $ */
+/* $OpenBSD: import.c,v 1.104 2015/01/16 06:40:07 deraadt Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -67,7 +67,7 @@ int
cvs_import(int argc, char **argv)
{
int i, ch;
- char repo[MAXPATHLEN], *arg = ".";
+ char repo[PATH_MAX], *arg = ".";
struct cvs_recursion cr;
struct trigger_list *line_list;
@@ -217,7 +217,7 @@ cvs_import_local(struct cvs_file *cf)
{
int isnew;
struct stat st;
- char repo[MAXPATHLEN];
+ char repo[PATH_MAX];
cvs_log(LP_TRACE, "cvs_import_local(%s)", cf->file_path);
@@ -258,7 +258,7 @@ static void
import_loginfo(char *repo)
{
int i;
- char pwd[MAXPATHLEN];
+ char pwd[PATH_MAX];
if (getcwd(pwd, sizeof(pwd)) == NULL)
fatal("Can't get working directory");