screenshot: printf format "%.*s" takes an int, not ptrdiff_t

This commit is contained in:
wm4 2012-10-28 20:05:50 +01:00
parent 82d47895e4
commit b0317a8bee
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ static char *stripext(void *talloc_ctx, const char *s)
const char *end = strrchr(s, '.');
if (!end)
end = s + strlen(s);
return talloc_asprintf(talloc_ctx, "%.*s", end - s, s);
return talloc_asprintf(talloc_ctx, "%.*s", (int)(end - s), s);
}
#ifdef _WIN32