d = localtime(&ic->interface.created);
strftime(datebuff, 16, cfg.tformat, d);
snprintf(daytemp, 24, "since %s", datebuff);
- snprintf(buffer, 24, "%23s", daytemp);
+ snprintf(buffer, 32, "%23s", daytemp);
gdImageString(ic->im, gdFontGetSmall(), textx-48, texty+70, (unsigned char*)buffer, ic->ctext);
drawlegend(ic, 410, 155-headermod);
gdImageStringUp(ic.im, gdFontGetSmall(), 1, y+15, (unsigned char*)"50.0%", ic.ctext);
- for (i=50.0; i>=0; i-=0.2) {
+ for (i=50.0; i>=0; i-=(float)0.2) {
drawdonut(&ic, x, y, i, i);
x += 55;