summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 884e313)
raw | patch | inline | side by side (parent: 884e313)
author | Sean <seanlkml@sympatico.ca> | |
Tue, 23 May 2006 00:36:34 +0000 (20:36 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 23 May 2006 01:00:38 +0000 (18:00 -0700) |
Signed-off-by: Sean Estabrooks <seanlkml@sympatico.ca>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | patch | blob | history |
index 160178367964e2c262366d6819fa26de3edb4a62..3a2a175c7ec34d5524f8e664c4dd3f05c24f4d4a 100644 (file)
--- a/diff.c
+++ b/diff.c
if (a_midlen < 0) a_midlen = 0;
if (b_midlen < 0) b_midlen = 0;
- name = xmalloc(len_a + len_b - pfx_length - sfx_length + 7);
+ name = xmalloc(pfx_length + a_midlen + b_midlen + sfx_length + 7);
sprintf(name, "%.*s{%.*s => %.*s}%s",
pfx_length, a,
a_midlen, a + pfx_length,