@matheusbsbs / matheus-bagliano / commits / a24f1e254e
Fork 0

builtin-grep: printf %.*s length is int, not ptrdiff_t.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed May 2, 2006 at 01:28 UTC a24f1e254e9dbea80b8173d72e0f75fec25b38a7
1 file changed +1 -1
builtin-grep.c
+1 -1
@@ -103,7 +103,7 @@ static void show_line(struct grep_opt *opt, const char *bol, const char *eol,
103 printf("%s%c", name, sign);
104 if (opt->linenum)
105 printf("%d%c", lno, sign);
106 - printf("%.*s\n", eol-bol, bol);
106 + printf("%.*s\n", (int)(eol-bol), bol);
107 }
108
109 static int grep_buffer(struct grep_opt *opt, const char *name,