rem: sprintf(prefix, "  [%i]", instIndex);
add: snprintf(prefix, sizeof(prefix), "  [%i]", instIndex);
context: wWindowUpdateName(WWindow *wwin, char *newTitle){    WApplication *app = wApplicationOf(wwin->main_window);    int instIndex = 0;    Bool res;    char prefix[32] = "";    char *tmp, *title;        if (!wwin->frame)	return;        if (app) 	instIndex = wApplicationIndexOfGroup(app);            wwin->flags.wm_name_changed = 1;        if (!newTitle) {	/* the hint was removed */	title = DEF_WINDOW_TITLE;	#ifdef KWM_HINTS	wKWMSendEventMessage(wwin, WKWMChangedClient);#endif	    } else {	title = newTitle;    }    #ifndef NO_WINDOW_ENUMERATOR    if (instIndex > 0) {	sprintf(prefix, "  [%i]", instIndex);		title = wstrconcat(title, prefix);    }#endif        if (wFrameWindowChangeTitle(wwin->frame, title)) {	/* only update the menu if the title has actually changed */	UpdateSwitchMenu(wwin->screen_ptr, wwin, ACTION_CHANGE);#ifdef KWM_HINTS	wKWMSendEventMessage(wwin, WKWMChangedClient);#endif    }#ifndef NO_WINDOW_ENUMERATOR    if (instIndex > 0)	wfree(title);#endif}