1. libgd
  2. Untitled project
  3. gd-libgd


Mike Frysinger  committed ac33a3a

fix implicit memset decl

Need to include string.h to get the memset prototype:

gd_color_match.c: In function 'gdImageColorMatch':
gd_color_match.c:32:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
memset (buf, 0, sizeof(unsigned long) * 5 * im2->colorsTotal );

  • Participants
  • Parent commits bcffeea
  • Branches master

Comments (0)

Files changed (1)

File src/gd_color_match.c

View file
 #include "config.h"
+#include <string.h>
 #include "gd.h"
 #include "gdhelpers.h"