diff options
author | Andy Parkins <andyparkins@gmail.com> | 2006-11-23 10:05:17 +0000 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-23 22:51:41 -0800 |
commit | f73da29fa2be2f4bbda86e006b743b8121bdbf19 (patch) | |
tree | 47544360e4616733dc3f6b74e16859ce87d4d806 /xdiff | |
parent | git-svn: preserve uncommitted changes after dcommit (diff) | |
download | tgif-f73da29fa2be2f4bbda86e006b743b8121bdbf19.tar.xz |
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>
Diffstat (limited to 'xdiff')
-rw-r--r-- | xdiff/xemit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xdiff/xemit.c b/xdiff/xemit.c index 07995ec33e..e291dc7608 100644 --- a/xdiff/xemit.c +++ b/xdiff/xemit.c @@ -118,7 +118,7 @@ int xdl_emit_diff(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb, xdemitconf_t const *xecfg) { long s1, s2, e1, e2, lctx; xdchange_t *xch, *xche; - char funcbuf[40]; + char funcbuf[80]; long funclen = 0; if (xecfg->flags & XDL_EMIT_COMMON) |