/****************************************************************************
- * Copyright (c) 2011 Free Software Foundation, Inc. *
+ * Copyright (c) 2011,2012 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* authorization. *
****************************************************************************/
/*
- * $Id: color_name.h,v 1.3 2011/05/14 17:41:17 tom Exp $
+ * $Id: color_name.h,v 1.4 2012/11/18 01:59:32 tom Exp $
*/
#ifndef __COLORNAME_H
static char temp[20];
const char *result = 0;
- if (color > (int) SIZEOF(the_color_names)) {
+ if (color >= (int) SIZEOF(the_color_names)) {
sprintf(temp, "%d", color);
result = temp;
} else if (color < 0) {