summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-28 20:05:50 +0100
committerwm4 <wm4@nowhere>2012-10-30 19:50:20 +0100
commitb0317a8bee839c3ffccd666581acb25baa5106d7 (patch)
treed860632fd4015989ca09089c7f7576ead6c79426
parent82d47895e4b24e6ad096786756ad0f4923c81a4f (diff)
downloadmpv-b0317a8bee839c3ffccd666581acb25baa5106d7.tar.bz2
mpv-b0317a8bee839c3ffccd666581acb25baa5106d7.tar.xz
screenshot: printf format "%.*s" takes an int, not ptrdiff_t
-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