diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-17 16:43:40 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-17 16:43:40 +0000 |
commit | 02e62dfcc3b3a3e8df467d61ae844b91c6be33b5 (patch) | |
tree | 2169bb933576786827ee9b56e803c57a15aac0eb | |
parent | f983a8c504e0ec664f04e17c19066a5c6df24ff5 (diff) |
more use of CVS_ENT_MAXLINELEN;
-rw-r--r-- | usr.bin/cvs/resp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/cvs/resp.c b/usr.bin/cvs/resp.c index 39fc6c4a217..b0fe0218917 100644 --- a/usr.bin/cvs/resp.c +++ b/usr.bin/cvs/resp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resp.c,v 1.55 2005/08/16 16:34:19 xsa Exp $ */ +/* $OpenBSD: resp.c,v 1.56 2005/08/17 16:43:39 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -423,7 +423,7 @@ cvs_resp_createdir(char *line) CVSENTRIES *entf; struct stat st; struct cvs_ent *ent; - char *file, subdir[MAXPATHLEN], buf[MAXPATHLEN]; + char *file, subdir[MAXPATHLEN], buf[CVS_ENT_MAXLINELEN]; entf = NULL; cf = NULL; @@ -808,7 +808,8 @@ static int cvs_resp_rcsdiff(struct cvsroot *root, int type, char *line) { int len; - char file[MAXPATHLEN], buf[MAXPATHLEN], cksum_buf[CVS_CKSUM_LEN]; + char file[MAXPATHLEN]; + char buf[CVS_ENT_MAXLINELEN], cksum_buf[CVS_CKSUM_LEN]; char *fname, *orig, *patch; mode_t fmode; BUF *res, *fcont, *patchbuf; |