From a17119a3e28ba4d1e82561d6dfd9a676da783db3 Mon Sep 17 00:00:00 2001 From: manuel Date: Sat, 2 May 2009 20:44:05 +0200 Subject: additional assert for getXPMColorID --- ue2/imgsynth2/cpixmap.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'ue2/imgsynth2/cpixmap.cpp') 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 { static const char code[] = PIXMAP_COLORCHARS; assert(strlen(code) > 0); + assert(length > 0); string str(""); for(unsigned int i = length - 1; i > 0; i--) { -- cgit v1.2.3