Index: Horde3D/Source/Horde3DEngine/utImage.cpp =================================================================== --- Horde3D/Source/Horde3DEngine/utImage.cpp (revision 132) +++ Horde3D/Source/Horde3DEngine/utImage.cpp (working copy) @@ -138,14 +138,14 @@ // // this is not threadsafe -static char *failure_reason; +static const char *failure_reason; -char *stbi_failure_reason(void) +const char *stbi_failure_reason(void) { return failure_reason; } -static int e(char *str) +static int e(const char *str) { failure_reason = str; return 0; @@ -2603,7 +2603,6 @@ offset = get32le(s); hsz = get32le(s); if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108) return epuc("unknown BMP", "BMP type not supported: unknown"); - failure_reason = "bad BMP"; if (hsz == 12) { s->img_x = get16le(s); s->img_y = get16le(s); @@ -3318,7 +3317,7 @@ #ifndef STBI_NO_HDR static int hdr_test(stbi *s) { - char *signature = "#?RADIANCE\n"; + const char *signature = "#?RADIANCE\n"; int i; for (i=0; signature[i]; ++i) if (get8(s) != signature[i]) Index: Horde3D/Source/Horde3DEngine/utImage.h =================================================================== --- Horde3D/Source/Horde3DEngine/utImage.h (revision 132) +++ Horde3D/Source/Horde3DEngine/utImage.h (working copy) @@ -176,7 +176,7 @@ // get a VERY brief reason for failure // NOT THREADSAFE -extern char *stbi_failure_reason (void); +extern const char *stbi_failure_reason (void); // free the loaded image -- this is just free() extern void stbi_image_free (void *retval_from_stbi_load);