aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llimage/llimagejpeg.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llimage/llimagejpeg.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/llimage/llimagejpeg.cpp b/linden/indra/llimage/llimagejpeg.cpp
index 68529b6..afb3368 100644
--- a/linden/indra/llimage/llimagejpeg.cpp
+++ b/linden/indra/llimage/llimagejpeg.cpp
@@ -3,7 +3,7 @@
3 * 3 *
4 * $LicenseInfo:firstyear=2002&license=viewergpl$ 4 * $LicenseInfo:firstyear=2002&license=viewergpl$
5 * 5 *
6 * Copyright (c) 2002-2008, Linden Research, Inc. 6 * Copyright (c) 2002-2009, Linden Research, Inc.
7 * 7 *
8 * Second Life Viewer Source Code 8 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 9 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -465,7 +465,8 @@ void LLImageJPEG::errorOutputMessage( j_common_ptr cinfo )
465 char buffer[JMSG_LENGTH_MAX]; /* Flawfinder: ignore */ 465 char buffer[JMSG_LENGTH_MAX]; /* Flawfinder: ignore */
466 (*cinfo->err->format_message) (cinfo, buffer); 466 (*cinfo->err->format_message) (cinfo, buffer);
467 467
468 ((LLImageJPEG*) cinfo->client_data)->setLastError( buffer ); 468 std::string error = buffer ;
469 LLImage::setLastError(error);
469 470
470 BOOL is_decode = (cinfo->is_decompressor != 0); 471 BOOL is_decode = (cinfo->is_decompressor != 0);
471 llwarns << "LLImageJPEG " << (is_decode ? "decode " : "encode ") << " failed: " << buffer << llendl; 472 llwarns << "LLImageJPEG " << (is_decode ? "decode " : "encode ") << " failed: " << buffer << llendl;