pkgsrc/graphics/jpeg_ls/patches/patch-al
joerg 4b260f490e stdout can not be used to initialise a global variable.. Move it from
global scope to static scope in encoder.c / decoder.c and initialise it
from main.
Fix a nice side-effect from a macro, which is not a macro in DragonFly:
	if feof(tablefile)
does not parse correctly.
2005-12-30 23:23:54 +00:00

13 lines
414 B
Text

$NetBSD: patch-al,v 1.1 2005/12/30 23:23:54 joerg Exp $
--- Encoder/jpegmark.c.orig 2005-12-30 23:16:58.000000000 +0000
+++ Encoder/jpegmark.c
@@ -287,7 +287,7 @@ int write_jpegls_extmarker(FILE *out, jp
i=200;
jp->TABLE[TID][i] = read_n_bytes(tablefile, Wt);
- if feof(tablefile)
+ if (feof(tablefile))
{
fprintf(stderr,"Error Reading Table File - Premature EOF found.\n");
exit(1);