diff options
author | wm4 <wm4@nowhere> | 2012-10-28 20:05:50 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-30 19:50:20 +0100 |
commit | b0317a8bee839c3ffccd666581acb25baa5106d7 (patch) | |
tree | d860632fd4015989ca09089c7f7576ead6c79426 | |
parent | 82d47895e4b24e6ad096786756ad0f4923c81a4f (diff) | |
download | mpv-b0317a8bee839c3ffccd666581acb25baa5106d7.tar.bz2 mpv-b0317a8bee839c3ffccd666581acb25baa5106d7.tar.xz |
screenshot: printf format "%.*s" takes an int, not ptrdiff_t
-rw-r--r-- | screenshot.c | 2 |
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 |