diff --git a/src/application.c b/src/application.c index c50f3e40..ca472031 100644 --- a/src/application.c +++ b/src/application.c @@ -114,25 +114,8 @@ void wApplicationSaveIconPathFor(char *iconPath, char *wm_instance, char *wm_cla WMPropList *adict, *key, *iconk; WMPropList *val; char *tmp; - int i; - - i = 0; - if (wm_instance) - i += strlen(wm_instance); - if (wm_class) - i += strlen(wm_class); - - tmp = wmalloc(i + 8); - *tmp = 0; - if (wm_class && wm_instance) { - sprintf(tmp, "%s.%s", wm_instance, wm_class); - } else { - if (wm_instance) - strcat(tmp, wm_instance); - if (wm_class) - strcat(tmp, wm_class); - } + tmp = get_name_for_instance_class(wm_instance, wm_class); key = WMCreatePLString(tmp); wfree(tmp);