summaryrefslogtreecommitdiffstats
path: root/screenshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'screenshot.c')
-rw-r--r--screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screenshot.c b/screenshot.c
index 1f2b0694fc..17c2c78ad2 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -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