summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07c3971)
raw | patch | inline | side by side (parent: 07c3971)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 4 Jun 2007 06:45:21 +0000 (08:45 +0200) | ||
committer | Jonas 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).
printf field width specifier (%.*s).
tig.c | patch | blob | history |
index b09d91bf98189b3ea947eaba3b254bfea3dbc10c..31b41f7dd085175f5ec3f9ed4ba5239f67937f81 100644 (file)
--- a/tig.c
+++ b/tig.c
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) {