summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-13 22:17:22 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-13 22:17:26 +0200
commit57c7abbd3c3b30086a5503a8017748caaf47084c (patch)
treef0538d08fbb5ba9f96fcd383b737383fac39bb1e
parent8ebc1e27f7a19091515b8de742d486698dae4d6e (diff)
tak: use fwrite
-rw-r--r--src/tak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tak.c b/src/tak.c
index dc3eda5..caf1837 100644
--- a/src/tak.c
+++ b/src/tak.c
@@ -36,7 +36,7 @@ int entry_tak(int argc, char **argv) {
lstart++;
}
- printf("%.*s\n", lend - lstart + 1, lstart);
+ fwrite(lstart, 1, lend - lstart + 2, stdout);
lend = lstart-1;
}