Skip to content

Commit f73da29

Browse files
andyparkinsJunio C Hamano
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4769489 commit f73da29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xdiff/xemit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int xdl_emit_diff(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
118118
xdemitconf_t const *xecfg) {
119119
long s1, s2, e1, e2, lctx;
120120
xdchange_t *xch, *xche;
121-
char funcbuf[40];
121+
char funcbuf[80];
122122
long funclen = 0;
123123

124124
if (xecfg->flags & XDL_EMIT_COMMON)

0 commit comments

Comments
 (0)