rem: sprintf(buf, "%i", index);
add: snprintf(buf, sizeof(buf), "%i", index);
context: wAppIconPaint(WAppIcon *aicon){    WApplication *wapp;        WScreen *scr = aicon->icon->core->screen_ptr;    int index;    if (aicon->icon->owner)	wapp = wApplicationOf(aicon->icon->owner->main_window);    else	wapp = NULL;    wIconPaint(aicon->icon);# ifdef WS_INDICATOR    if (aicon->docked && scr->dock && scr->dock==aicon->dock &&        aicon->yindex==0)	updateDockNumbers(scr);# endif    if (scr->dock_dots && aicon->docked && !aicon->running	&& aicon->command!=NULL) {	XSetClipMask(dpy, scr->copy_gc, scr->dock_dots->mask);	XSetClipOrigin(dpy, scr->copy_gc, 0, 0);	XCopyArea(dpy, scr->dock_dots->image, aicon->icon->core->window,		  scr->copy_gc, 0, 0, scr->dock_dots->width,		  scr->dock_dots->height, 0, 0);    }           #ifdef HIDDENDOT    if (wapp && wapp->flags.hidden) {	XSetClipMask(dpy, scr->copy_gc, scr->dock_dots->mask);	XSetClipOrigin(dpy, scr->copy_gc, 0, 0);	XCopyArea(dpy, scr->dock_dots->image,		  aicon->icon->core->window,		  scr->copy_gc, 0, 0, 7,		  scr->dock_dots->height, 0, 0);            }#endif /* HIDDENDOT */    if (wapp)	index = wApplicationIndexOfGroup(wapp);    else	index = 0;        if (index > 0) {	char buf[16];		sprintf(buf, "%i", index);		WMDrawString(scr->wmscreen, aicon->icon->core->window, 		     scr->clip_title_gc, scr->title_font,		     1, 1, buf, strlen(buf));    }            if (aicon->omnipresent)        drawCorner(aicon->icon);    XSetClipMask(dpy, scr->copy_gc, None);    if (aicon->launching) {	XFillRectangle(dpy, aicon->icon->core->window, scr->stipple_gc,		       0, 0, wPreferences.icon_size, wPreferences.icon_size);    }}