aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-01-10 02:00:47 +0100
committerkdx <kikoodx@paranoici.org>2023-01-10 02:00:47 +0100
commitba076c561a3ed9b2c4bbf13851b248e89870f809 (patch)
tree792514c367122fb2b59da5c4f98f3bfa1d3f345a
parent12af10bf255d43829025ce2114262d7e34ad381e (diff)
downloadtwtxtc-ba076c561a3ed9b2c4bbf13851b248e89870f809.tar.gz
split fprintf in fputs/putc
-rw-r--r--twtxt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/twtxt.c b/twtxt.c
index f7f8cbb..73ca46c 100644
--- a/twtxt.c
+++ b/twtxt.c
@@ -132,7 +132,9 @@ int main(int argc, char *argv[]) {
timebuf[sizeof(timebuf)-1] = '\0'; /* Terminate! */
/* Build the new line and write it into the file: */
- fprintf(twtxtfile, "%s\t%s\n", timebuf, text);
+ fputs(timebuf, twtxtfile);
+ putc('\t', twtxtfile);
+ fputs(text, twtxtfile);
/* Done. */
fclose(twtxtfile);