Fix (another) integer type mismatch on 64-bit systems
authorJonas Fonseca <fonseca@diku.dk>
Mon, 4 Jun 2007 06:45:21 +0000 (08:45 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Mon, 4 Jun 2007 06:45:21 +0000 (08:45 +0200)
Similar to previous commit, use int type as the first parameter to
printf field width specifier (%.*s).

tig.c

diff --git a/tig.c b/tig.c
index b09d91b..31b41f7 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1394,7 +1394,7 @@ update_view_title(struct view *view)
 
                if (minsize < view->width)
                        refsize = view->width - minsize + 7;
-               string_format_from(buf, &bufpos, " %.*s", refsize, view->ref);
+               string_format_from(buf, &bufpos, " %.*s", (int) refsize, view->ref);
        }
 
        if (statelen && bufpos < view->width) {