From 17ad03448082f525fef515c4c45f56d151bbc46a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgars=20C=C4=ABrulis?= Date: Sat, 22 Apr 2023 13:30:59 +0000 Subject: [PATCH] xcursor: Resolve warning in xcursor_build_theme_dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Edgars Cīrulis --- xcursor/xcursor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xcursor/xcursor.c b/xcursor/xcursor.c index 4db8ab4d..1ebaef0b 100644 --- a/xcursor/xcursor.c +++ b/xcursor/xcursor.c @@ -535,9 +535,9 @@ xcursor_build_theme_dir(const char *dir, const char *theme) const char *tcolon; char *full; const char *home, *homesep; - int dirlen; - int homelen; - int themelen; + size_t dirlen; + size_t homelen; + size_t themelen; size_t full_size; if (!dir || !theme) @@ -577,7 +577,7 @@ xcursor_build_theme_dir(const char *dir, const char *theme) if (!full) return NULL; snprintf(full, full_size, "%s%s%.*s/%.*s", home, homesep, - dirlen, dir, themelen, theme); + (int)dirlen, dir, (int)themelen, theme); return full; }