[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1729-ge22ef03
[email protected] (Ray Johnston) Wed, 16 Oct 2019 13:45:25 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via e22ef03cdd31263ba1266f3d53aef7be4467e405 (commit)
from 8a3309451ded2335b7f7ab5ebf1c19eebad8b32c (commit)
----------------------------------------------------------------------
commit e22ef03cdd31263ba1266f3d53aef7be4467e405
Author: Ray Johnston <[email protected]>
Date: Wed Oct 16 06:43:04 2019 -0700
Fix bug 701715. Problem in thresh_remap.c binary output.
I never use binary output -- just -p for PostScript output, so this
was untested.
diff --git a/toolbin/halftone/thresh_remap/thresh_remap.c b/toolbin/halftone/thresh_remap/thresh_remap.c
index 87b6b8b..59ad8b6 100644
--- a/toolbin/halftone/thresh_remap/thresh_remap.c
+++ b/toolbin/halftone/thresh_remap/thresh_remap.c
@@ -192,7 +192,7 @@ main( int argc, char *argv[]) {
fprintf(ofile,"%%%%EOF\n");
} else {
/* Just dump the binary data (suitable for Scanvec */
- fprintf(ofile, "%c%c", width/256, width>>256);
+ fprintf(ofile, "%c%c", width/256, width % 256);
for (i=0; i<num_pix; i++)
fprintf(ofile, "%c", thresh[i]);
}
Summary of changes:
toolbin/halftone/thresh_remap/thresh_remap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)