Commits

Anonymous committed d23fe4d

- nc in gdImageFill sould not be less than 0

  • Participants
  • Parent commits 9981245
  • Branches GD-2.0

Comments (0)

Files changed (1)

 	struct seg *stack;
 	struct seg *sp;
 
-	if (!im->trueColor && nc > (im->colorsTotal - 1)) {
+	if (!im->trueColor && (nc >= 0) && (nc > (im->colorsTotal - 1))) {
 		return;
 	}