summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4769489)
raw | patch | inline | side by side (parent: 4769489)
author | Andy Parkins <andyparkins@gmail.com> | |
Thu, 23 Nov 2006 10:05:17 +0000 (10:05 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 24 Nov 2006 06:51:41 +0000 (22:51 -0800) |
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>
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>
xdiff/xemit.c | patch | blob | history |
diff --git a/xdiff/xemit.c b/xdiff/xemit.c
index 07995ec33e9079cbbb579947e55fe46c1521d28f..e291dc7608c4ab9b54a5d049bf3b555704e37fe8 100644 (file)
--- a/xdiff/xemit.c
+++ b/xdiff/xemit.c
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)