blob: 5bb5cbfb8cd63c881b536126c04473b6ff145f76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
http://bugs.gentoo.org/378393
--- VTK/IO/vtkPNGWriter.cxx
+++ VTK/IO/vtkPNGWriter.cxx
@@ -147,7 +147,7 @@
void vtkPNGWriteErrorFunction(png_structp png_ptr,
png_const_charp vtkNotUsed(error_msg))
{
- longjmp(png_ptr->jmpbuf, 1);
+ longjmp(png_jmpbuf(png_ptr), 1);
}
}
@@ -223,7 +223,7 @@
png_init_io(png_ptr, this->TempFP);
png_set_error_fn(png_ptr, png_ptr,
vtkPNGWriteErrorFunction, vtkPNGWriteWarningFunction);
- if (setjmp(png_ptr->jmpbuf))
+ if (setjmp(png_jmpbuf(png_ptr)))
{
fclose(this->TempFP);
this->SetErrorCode(vtkErrorCode::OutOfDiskSpaceError);
|