rem: buf = wmalloc(strlen(file)+80); sprintf(buf, _("Could not find icon \"%s\" specified for this window"),
add: buf = wmalloc(len); snprintf(buf, len, _("Could not find icon \"%s\" specified for this window"),
context: showIconFor(WMScreen *scrPtr, InspectorPanel *panel,            char *wm_instance, char *wm_class, int flags){    WMPixmap *pixmap = (WMPixmap*) NULL;    char *file=NULL, *path=NULL;    char *db_icon=NULL;    if ((flags & USE_TEXT_FIELD) != 0) {        file = WMGetTextFieldText(panel->fileText);        if (file && file[0] == 0) {            wfree(file);            file = NULL;        }    } else {        db_icon = wDefaultGetIconFile(panel->inspected->screen_ptr,                                      wm_instance, wm_class, False);        if(db_icon != NULL)            file = wstrdup(db_icon);    }    if (db_icon!=NULL && (flags & REVERT_TO_DEFAULT)!=0) {	if (file)	    file = wstrdup(db_icon);        flags |= UPDATE_TEXT_FIELD;    }    if ((flags & UPDATE_TEXT_FIELD) != 0) {        WMSetTextFieldText(panel->fileText, file);    }    if (file) {        path = FindImage(wPreferences.icon_path, file);        if (!path) {	    char *buf;	    	    buf = wmalloc(strlen(file)+80);	    sprintf(buf, _("Could not find icon \"%s\" specified for this window"),		    file);            wMessageDialog(panel->frame->screen_ptr, _("Error"), buf, 			   _("OK"), NULL, NULL);	    wfree(buf);	    wfree(file);            return -1;        }        pixmap = WMCreatePixmapFromFile(scrPtr, path);        wfree(path);        if (!pixmap) {	    char *buf;	    	    buf = wmalloc(strlen(file)+80);	    sprintf(buf, _("Could not open specified icon \"%s\":%s"),		    file, RMessageForError(RErrorCode));            wMessageDialog(panel->frame->screen_ptr, _("Error"), buf,			   _("OK"), NULL, NULL);	    wfree(buf);	    wfree(file);            return -1;        }        wfree(file);    }    WMSetLabelImage(panel->iconLbl, pixmap);    if (pixmap)        WMReleasePixmap(pixmap);    return 0;}