diff options
author | Christian Hesse <mail@eworm.de> | 2014-02-27 10:18:34 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-02-27 10:18:34 +0100 |
commit | 8f344a78763429fdc5e1c3237ae2a809fb855ed0 (patch) | |
tree | 44d1ebf988d846a15e54977f646cbfa87416179b | |
parent | b4248c6191a063d424434ca1921680eceb61d922 (diff) | |
download | cqrlogo-8f344a78763429fdc5e1c3237ae2a809fb855ed0.tar.gz cqrlogo-8f344a78763429fdc5e1c3237ae2a809fb855ed0.tar.zst |
use fputs for CGI header
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | cqrlogo.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) { @@ -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) { |