From 8f344a78763429fdc5e1c3237ae2a809fb855ed0 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 27 Feb 2014 10:18:34 +0100 Subject: use fputs for CGI header --- README.md | 2 +- cqrlogo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 83f7997..b1c743a 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ your custom needs. This is minimal sample source code: } /* print HTTP header */ - printf(cqr_mimeheader); + fputs(cqr_mimeheader, stdout); /* write PNG data to stdout */ if (fwrite(png->buffer, png->size, 1, stdout) != 1) { diff --git a/cqrlogo.c b/cqrlogo.c index 48ba91a..f46867e 100644 --- a/cqrlogo.c +++ b/cqrlogo.c @@ -101,7 +101,7 @@ int main(int argc, char **argv) { } /* print HTTP header */ - printf(cqr_mimeheader); + fputs(cqr_mimeheader, stdout); /* write PNG data to stdout */ if (fwrite(png->buffer, png->size, 1, stdout) != 1) { -- cgit v1.2.3-54-g00ecf