File: fix-ftbfs-gcc14.patch

package info (click to toggle)
ploticus 2.42-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,228 kB
  • sloc: ansic: 46,243; perl: 1,590; sh: 392; makefile: 123
file content (21 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Forwarded: not-needed
--- a/src/svg.c
+++ b/src/svg.c
@@ -740,7 +740,7 @@
 	buf = svg_style; /* reuse */
 	while( fgets( buf, 999, svg_fp ) != NULL ) {
 #ifdef WZ
-		if( svg_compress ) gzprintf( outfp, "%s", buf ); 
+		if( svg_compress ) gzprintf( (gzFile) outfp, "%s", buf ); 
 		else 
 #endif
 			printf( "%s", buf );
@@ -749,7 +749,7 @@
 	unlink( svg_tmpfilename );
 #ifdef WZ
 	if( svg_compress && !svg_stdout ) {
-		gzclose( outfp );
+		gzclose( (gzFile) outfp );
 		chmod( svg_filename, 00644 );
 		}
 #endif