Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 383247
Collapse All | Expand All

(-)Shaaft-0.5.0.orig/utilssdl/PNG.cpp (-2 / +2 lines)
Lines 45-51 Link Here
45
{
45
{
46
    png_uint_32 check;
46
    png_uint_32 check;
47
47
48
    check = fwrite( data, 1, length, (FILE *)(png->io_ptr));
48
    check = fwrite( data, 1, length, (FILE *)(png_get_io_ptr(png)));
49
    if( check != length)
49
    if( check != length)
50
    {
50
    {
51
	png_error( png, "Write Error");
51
	png_error( png, "Write Error");
Lines 72-78 Link Here
72
	return false;
72
	return false;
73
    }
73
    }
74
74
75
    if( setjmp(_png->jmpbuf))
75
    if( setjmp(png_jmpbuf(_png)))
76
    {
76
    {
77
	fclose( fp);
77
	fclose( fp);
78
	png_destroy_write_struct(&_png, (png_infopp)NULL);
78
	png_destroy_write_struct(&_png, (png_infopp)NULL);

Return to bug 383247