From 13e897e58072678cdae3ec1db51cc91110dc559d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 15 Apr 2005 21:42:34 -0700 Subject: [PATCH] Simplify show-diff cache entry name handling. The cache-entry names are all proper strings, no need to worry about their length. --- show-diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show-diff.c b/show-diff.c index 15dcd0525..6f343c56b 100644 --- a/show-diff.c +++ b/show-diff.c @@ -97,7 +97,7 @@ int main(int argc, char **argv) changed = cache_match_stat(ce, &st); if (!changed) continue; - printf("%.*s: ", ce_namelen(ce), ce->name); + printf("%s: ", ce->name); for (n = 0; n < 20; n++) printf("%02x", ce->sha1[n]); printf("\n"); -- 2.30.2