summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bdftopcf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bdftopcf.c b/bdftopcf.c
index f3bd6ee..1deab8b 100644
--- a/bdftopcf.c
+++ b/bdftopcf.c
@@ -165,7 +165,7 @@ main(int argc, char *argv[])
}
}
else
- input = FontFileOpenFd(0);
+ input = FontFileOpenFd(STDIN_FILENO);
if (bdfReadFont(&font, input, bit, byte, glyph, scan) != Successful) {
fprintf(stderr, "%s: bdf input, %s, corrupt\n",
program_name, input_name ? input_name : "<stdin>");
@@ -180,7 +180,7 @@ main(int argc, char *argv[])
}
}
else
- output = FontFileOpenWriteFd(1);
+ output = FontFileOpenWriteFd(STDOUT_FILENO);
if (pcfWriteFont(&font, output) != Successful) {
fprintf(stderr, "%s: can't write pcf file %s\n",
program_name, output_name ? output_name : "<stdout>");