mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-24 13:45:58 +01:00
xcursor: Resolve warning in xcursor_build_theme_dir
Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com>
This commit is contained in:
parent
56502be1d1
commit
17ad034480
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue