summaryrefslogtreecommitdiff
path: root/DevIL/src-IL/src/il_pnm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DevIL/src-IL/src/il_pnm.cpp')
-rw-r--r--DevIL/src-IL/src/il_pnm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/DevIL/src-IL/src/il_pnm.cpp b/DevIL/src-IL/src/il_pnm.cpp
index 2b057035..7809c16e 100644
--- a/DevIL/src-IL/src/il_pnm.cpp
+++ b/DevIL/src-IL/src/il_pnm.cpp
@@ -467,7 +467,7 @@ ILboolean ilReadPam()
else if (!strncmp(TempStr.c_str(), "MAXVAL", 6))
Info.MaxColour = atoi((const char*)SmallBuff);
else if (!strncmp(TempStr.c_str(), "TUPLTYPE", 8))
- Info.TuplType = DecodeTupleType(string((char*)SmallBuff));
+ Info.TuplType = DecodeTupleType(TempStr);
}
//@TODO: Handle other max colors and tuple types