pathencode: grow buffers to increase safety margin stable
authorMatt Mackall <mpm@selenic.com>
Fri, 10 May 2013 11:23:50 -0500
branchstable
changeset 19185 8bed40e02c3b
parent 19183 9d88916fb56f
child 19187 012be6c12ad8
pathencode: grow buffers to increase safety margin
mercurial/pathencode.c
--- a/mercurial/pathencode.c	Sun May 12 10:09:34 2013 +0100
+++ b/mercurial/pathencode.c	Fri May 10 11:23:50 2013 -0500
@@ -696,7 +696,7 @@
 	return 0;
 }
 
-#define MAXENCODE 4096 * 3
+#define MAXENCODE 4096 * 4
 
 static PyObject *hashencode(const char *src, Py_ssize_t len)
 {