diff -ur plt-4.2.2.orig/src/wxcommon/wxJPEG.cxx plt-4.2.2/src/wxcommon/wxJPEG.cxx --- plt-4.2.2.orig/src/wxcommon/wxJPEG.cxx 2009-09-17 06:08:52.000000000 +0300 +++ plt-4.2.2/src/wxcommon/wxJPEG.cxx 2011-10-31 00:16:29.598465746 +0200 @@ -521,7 +521,7 @@ png_err_msg = new WXGC_ATOMIC char[len + 1]; memcpy(png_err_msg, msg, len + 1); - longjmp(png_ptr->jmpbuf, 1); + longjmp(png_jmpbuf(png_ptr), 1); } static void user_warn_proc(png_structp info, png_const_charp msg) @@ -676,7 +676,7 @@ png_ptr_orig = png_ptr; info_ptr_orig = info_ptr; - if (setjmp(png_ptr->jmpbuf)) + if (setjmp(png_jmpbuf(png_ptr))) { /* Free all of the memory associated with the png_ptr and info_ptr */ png_ptr = png_ptr_orig; @@ -964,7 +964,7 @@ png_ptr_orig = png_ptr; info_ptr_orig = info_ptr; - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { /* Free all of the memory associated with the png_ptr and info_ptr */ png_ptr = png_ptr_orig; info_ptr = info_ptr_orig;