mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-27 10:25:49 +01:00
- fixed problem with WINGs based apps exiting with a "X_RotateProperties"
related error when text was selected in a textfiled (this included WPrefs.app and Window Maker itself). - replaced some malloc's with wmalloc's
This commit is contained in:
@@ -114,24 +114,19 @@ print_help()
|
||||
char*
|
||||
globalDefaultsPathForDomain(char *domain)
|
||||
{
|
||||
char path[1024];
|
||||
char *tmp;
|
||||
static char path[1024];
|
||||
|
||||
sprintf(path, "%s/WindowMaker/%s", SYSCONFDIR, domain);
|
||||
|
||||
tmp = malloc(strlen(path)+2);
|
||||
assert(tmp!=NULL);
|
||||
strcpy(tmp, path);
|
||||
|
||||
return tmp;
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
char*
|
||||
defaultsPathForDomain(char *domain)
|
||||
{
|
||||
char path[1024];
|
||||
char *gspath, *tmp;
|
||||
static char path[1024];
|
||||
char *gspath;
|
||||
|
||||
gspath = getenv("GNUSTEP_USER_ROOT");
|
||||
if (gspath) {
|
||||
@@ -152,10 +147,7 @@ defaultsPathForDomain(char *domain)
|
||||
strcat(path, "/");
|
||||
strcat(path, domain);
|
||||
|
||||
tmp = malloc(strlen(path)+2);
|
||||
strcpy(tmp, path);
|
||||
|
||||
return tmp;
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
@@ -602,7 +594,6 @@ main(int argc, char **argv)
|
||||
ProgName, path);
|
||||
exit(1);
|
||||
}
|
||||
free(path);
|
||||
|
||||
/* get global value */
|
||||
path = globalDefaultsPathForDomain("WindowMaker");
|
||||
|
||||
Reference in New Issue
Block a user