diff options
Diffstat (limited to 'ue2/imgsynth2')
| -rw-r--r-- | ue2/imgsynth2/cpixmap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ue2/imgsynth2/cpixmap.cpp b/ue2/imgsynth2/cpixmap.cpp index 52f9825..83a2a0b 100644 --- a/ue2/imgsynth2/cpixmap.cpp +++ b/ue2/imgsynth2/cpixmap.cpp | |||
| @@ -269,6 +269,7 @@ const std::string CPixmap::getXPMColorID(unsigned int index, unsigned int length | |||
| 269 | { | 269 | { |
| 270 | static const char code[] = PIXMAP_COLORCHARS; | 270 | static const char code[] = PIXMAP_COLORCHARS; |
| 271 | assert(strlen(code) > 0); | 271 | assert(strlen(code) > 0); |
| 272 | assert(length > 0); | ||
| 272 | string str(""); | 273 | string str(""); |
| 273 | for(unsigned int i = length - 1; i > 0; i--) | 274 | for(unsigned int i = length - 1; i > 0; i--) |
| 274 | { | 275 | { |
