blob: 542a9aeab094c5882805fc92da8d124460656833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/Source/FreeImage/PluginXPM.cpp
+++ b/Source/FreeImage/PluginXPM.cpp
@@ -198,7 +198,7 @@
FILE_RGBA rgba;
str = ReadString(io, handle);
- if(!str || (strlen(str) < cpp))
+ if(!str || (strlen(str) < (size_t)cpp))
throw "Error reading color strings";
std::string chrs(str,cpp); //create a string for the color chars using the first cpp chars
|