diff options
author | Edgars Cīrulis <edgarsscirulis@gmail.com> | 2023-04-22 13:30:59 +0000 |
---|---|---|
committer | Edgars Cīrulis <edgarsscirulis@gmail.com> | 2023-04-25 10:16:59 +0000 |
commit | 17ad03448082f525fef515c4c45f56d151bbc46a (patch) | |
tree | e56df3e92c5dce7537f70c47aa220588220dfe29 | |
parent | 56502be1d1f0fa98b6af795e35b23fed637401a1 (diff) |
xcursor: Resolve warning in xcursor_build_theme_dir
Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com>
-rw-r--r-- | xcursor/xcursor.c | 8 |
1 files 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; } |