From b0317a8bee839c3ffccd666581acb25baa5106d7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 28 Oct 2012 20:05:50 +0100 Subject: screenshot: printf format "%.*s" takes an int, not ptrdiff_t --- screenshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3