Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37561638
en ru br
ALT Linux repos
S:1.3.7-alt2
5.0: 1.3.0-alt4.M50.5
4.1: 1.3.0-alt2.M41.3
3.0: 1.2.2-alt2

Group :: Games/Sports
RPM: TORCS

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: TORCS-1.3.0-alt-libpng15.patch
Download


diff --git a/TORCS-1.3.0-src/src/libs/tgfclient/img.cpp b/TORCS-1.3.0-src/src/libs/tgfclient/img.cpp
index 3141496..2f76f38 100644
--- a/TORCS-1.3.0-src/src/libs/tgfclient/img.cpp
+++ b/TORCS-1.3.0-src/src/libs/tgfclient/img.cpp
@@ -98,7 +98,7 @@ GfImgReadPng(const char *filename, int *widthp, int *heightp, float screen_gamma
 		return (unsigned char *)NULL;
 	}
 	
-	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_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
@@ -229,7 +229,7 @@ GfImgWritePng(unsigned char *img, const char *filename, int width, int height)
 		return -1;
 	}
 	
-	if (setjmp(png_ptr->jmpbuf)) {    
+	if (setjmp(png_jmpbuf(png_ptr))) {    
 		png_destroy_write_struct(&png_ptr, &info_ptr);
 		fclose(fp);
 		return -1;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin