@matheusbsbs / matheus-bagliano / commits / f73da29fa2
Fork 0

Increase length of function name buffer

In xemit.c:xdl_emit_diff() a buffer for showing the function name as commentary is allocated; this buffer was 40 characters. This is a bit small; particularly for C++ function names where there is often an identical prefix (like void LongNamespace::LongClassName) on multiple functions, which makes the context the same everywhere. In other words the context is useless. This patch increases that buffer to 80 characters - which may still not be enough, but is better Signed-off-by: Andy Parkins <andyparkins@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Andy Parkins committed Nov 23, 2006 at 10:05 UTC f73da29fa2be2f4bbda86e006b743b8121bdbf19
1 file changed +1 -1
xdiff/xemit.c
+1 -1
@@ -118,7 +118,7 @@ int xdl_emit_diff(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
118 xdemitconf_t const *xecfg) {
119 long s1, s2, e1, e2, lctx;
120 xdchange_t *xch, *xche;
121 - char funcbuf[40];
121 + char funcbuf[80];
122 long funclen = 0;
123
124 if (xecfg->flags & XDL_EMIT_COMMON)