Files
pkgsrc-ng/fonts/pcf2bdf/patches/patch-aa
2013-09-26 17:14:40 +02:00

32 lines
779 B
Plaintext

$NetBSD: patch-aa,v 1.1.1.1 2002/12/31 05:44:43 kei Exp $
--- pcf2bdf.cc.orig Mon Oct 21 01:35:29 2002
+++ pcf2bdf.cc Tue Dec 31 14:36:08 2002
@@ -577,7 +577,7 @@
}
if (ifilename)
{
- ifp = fopen(ifilename, "rb");
+ ifp = fopen(ifilename, "r");
if (!ifp)
return error_exit("failed to open input pcf file");
}
@@ -595,7 +595,7 @@
fclose(ifp);
char buf[1024];
sprintf(buf, "gzip -dc %s", ifilename); // TODO
- ifp = popen(buf, "rb");
+ ifp = popen(buf, "r");
_setmode(fileno(ifp), O_BINARY);
read_bytes = 0;
if (!ifp)
@@ -604,7 +604,7 @@
if (ofilename)
{
- ofp = fopen(ofilename, "wb");
+ ofp = fopen(ofilename, "w");
if (!ofp)
return error_exit("failed to open output bdf file");
}