summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-15 11:10:12 -0400
committermidipix <writeonce@midipix.org>2018-07-15 11:15:26 -0400
commit65eb9da4e4c65437758876a55fb72486eeb1bf63 (patch)
tree745cdc366ee5b43e8434cddee997aa94d96062e3 /src
parent029a9bd3b9fbaa559c9caacdb1506aeecc411989 (diff)
downloadptycon-65eb9da4e4c65437758876a55fb72486eeb1bf63.tar.bz2
ptycon-65eb9da4e4c65437758876a55fb72486eeb1bf63.tar.xz
ptyc_version(): restrict to pure fdio via use of ptyc_dprintf().
Diffstat (limited to 'src')
-rw-r--r--src/driver/ptyc_amain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/ptyc_amain.c b/src/driver/ptyc_amain.c
index d23db2b..d4f2b11 100644
--- a/src/driver/ptyc_amain.c
+++ b/src/driver/ptyc_amain.c
@@ -42,7 +42,7 @@ static ssize_t ptyc_version(struct ptyc_driver_ctx * dctx)
verinfo = ptyc_source_version();
verclr = isatty(STDOUT_FILENO) ? ptyc_ver_color : ptyc_ver_plain;
- return fprintf(stdout,vermsg,
+ return ptyc_dprintf(STDOUT_FILENO,vermsg,
verclr[0],dctx->program,verclr[1],
verclr[2],verinfo->major,verinfo->minor,
verinfo->revision,verclr[3],