|
|
@ -535,9 +535,9 @@ xcursor_build_theme_dir(const char *dir, const char *theme)
|
|
|
|
const char *tcolon;
|
|
|
|
const char *tcolon;
|
|
|
|
char *full;
|
|
|
|
char *full;
|
|
|
|
const char *home, *homesep;
|
|
|
|
const char *home, *homesep;
|
|
|
|
int dirlen;
|
|
|
|
size_t dirlen;
|
|
|
|
int homelen;
|
|
|
|
size_t homelen;
|
|
|
|
int themelen;
|
|
|
|
size_t themelen;
|
|
|
|
size_t full_size;
|
|
|
|
size_t full_size;
|
|
|
|
|
|
|
|
|
|
|
|
if (!dir || !theme)
|
|
|
|
if (!dir || !theme)
|
|
|
@ -577,7 +577,7 @@ xcursor_build_theme_dir(const char *dir, const char *theme)
|
|
|
|
if (!full)
|
|
|
|
if (!full)
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
snprintf(full, full_size, "%s%s%.*s/%.*s", home, homesep,
|
|
|
|
snprintf(full, full_size, "%s%s%.*s/%.*s", home, homesep,
|
|
|
|
dirlen, dir, themelen, theme);
|
|
|
|
(int)dirlen, dir, (int)themelen, theme);
|
|
|
|
return full;
|
|
|
|
return full;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|