1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

fixed segfault with incomplete WM_CLASS

This commit is contained in:
kojima
2002-02-20 15:01:44 +00:00
parent 58e719654f
commit a8950af8ac
7 changed files with 49 additions and 6 deletions

View File

@@ -1271,3 +1271,22 @@ UpdateDomainFile(WDDomain *domain)
}
char*
StrConcatDot(char *a, char *b)
{
int len;
char *str;
if (!a)
a = "";
if (!b)
b = "";
len = strlen(a)+strlen(b)+4;
str = wmalloc(len);
snprintf(str, len, "%s.%s", a, b);
return str;
}