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
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;