mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-03 04:14:20 +01:00
Feet protector for getstyle
Since getstyle now saves the theme pack in $GUR instead of the cwd, there's a slight possibility you can specify a theme pack name that will do Bad Things to your existing stuff. To that end, specified theme pack name is "sanitised" a bit, as in forward slashes in it are replaced by an underscore. Oh yes, i forgot to mention. getstyle now saves the theme pack in $GNUSTEP_USER_ROOT, not in cwd.
This commit is contained in:
committed by
Carlos R. Mafra
parent
9f7aaa8aed
commit
5f02b1b5f4
@@ -352,7 +352,7 @@ void makeThemePack(WMPropList * style, char *themeName)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
WMPropList *prop, *style, *key, *val;
|
||||
char *path;
|
||||
char *path, *p;
|
||||
int i, theme_too = 0, make_pack = 0;
|
||||
char *style_file = NULL;
|
||||
|
||||
@@ -379,6 +379,8 @@ int main(int argc, char **argv)
|
||||
exit(1);
|
||||
}
|
||||
style_file = argv[i];
|
||||
while ((p = strchr(style_file, '/')) != NULL)
|
||||
*p = '_';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user