Module Name:    src
Committed By:   msaitoh
Date:           Tue Sep  9 08:29:53 UTC 2014

Modified Files:
        src/external/gpl2/xcvs/dist/src [netbsd-6]: server.c

Log Message:
Pull up following revision(s) (requested by tls in ticket #1109):
        external/gpl2/xcvs/dist/src/server.c: revision 1.7
Move the arbitrary limit on number of files per commit into
1000000 earlier today.


To generate a diff of this commit:
cvs rdiff -u -r1.3.10.2 -r1.3.10.3 src/external/gpl2/xcvs/dist/src/server.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl2/xcvs/dist/src/server.c
diff -u src/external/gpl2/xcvs/dist/src/server.c:1.3.10.2 src/external/gpl2/xcvs/dist/src/server.c:1.3.10.3
--- src/external/gpl2/xcvs/dist/src/server.c:1.3.10.2	Tue Sep  9 08:28:32 2014
+++ src/external/gpl2/xcvs/dist/src/server.c	Tue Sep  9 08:29:53 2014
@@ -153,6 +153,8 @@ static int argument_count;
 static char **argument_vector;
 static int argument_vector_size;
 
+#define MAXARGS 1000000		/* arbitrary limit */
+
 /*
  * This is where we stash stuff we are going to use.  Format string
  * which expects a single directory within it, starting with a slash.
@@ -1130,7 +1132,7 @@ serve_max_dotdot (char *arg)
     if (proxy_log) return;
 #endif /* PROXY_SUPPORT */
 
-    if (lim < 0 || lim > 1000000)
+    if (lim < 0 || lim > MAXARGS)
 	return;
     p = xmalloc (strlen (server_temp_dir) + 2 * lim + 10);
     if (p == NULL)
@@ -2989,7 +2991,7 @@ serve_argument (char *arg)
 
     if (error_pending()) return;
 
-    if (argument_count >= 1000000)
+    if (argument_count >= MAXARGS)
     {
 	if (alloc_pending (80))
 	    sprintf (pending_error_text, 

Reply via email to