- Fix user agent report font size and statistics on user agent.
- Test for the availability of -Werror=format-security in gcc (thanks to Maxim Britov).
- Test the existence of bzero with autoconf and don't redefine it (tkanks to Maxim Britov).
+ - Remove warnings if libgd is not available.
Oct-14-2009 Version 2.2.6
- Protection against buffer overflows in getword and friends and report the origin of the error instead of always blaming access.log.
#include "include/conf.h"
#include "include/defs.h"
+#if defined(HAVE_GD) && defined(HAVE_ICONV_H) && defined(gdFTEX_Unicode)
+
static int blue;
static int white;
static int lavender;
//static char *font1 = FONTDIR"/FreeSans.ttf";
static char *font1 = FONTDIR"/DejaVuSans.ttf";
-#if defined(HAVE_GD) && defined(HAVE_ICONV_H) && defined(gdFTEX_Unicode)
#include <iconv.h>
#define SARGgdImageStringFT I18NgdImageStringFT
#define SARGgdImageStringFT gdImageStringFT
#endif
+#ifdef HAVE_GD
static void bar(int x1,long long int n)
{
-#ifdef HAVE_GD
gdPoint points[4];
int brect[8];
int val=0, x;
points[3].y = 420;
gdImageFilledPolygon(im, points, 4, color2);
-#endif
return;
}
+#endif
void greport_day(const char *user)
{
+#ifdef HAVE_GD
FILE *fp_in, *pngout;
int x, y;
int x1;
int cstatus;
char s[15];
-#ifdef HAVE_GD
-
if(strcmp(Graphs,"yes") != 0) {
unlink(wdirname);
return;