]> git.feebdaed.xyz Git - 0xmirror/civetweb.git/commitdiff
Print to stderr instead of stdout in mg_cry_internal_impl
authorstevenwdv <stevenwdv@users.noreply.github.com>
Thu, 6 Mar 2025 13:11:14 +0000 (14:11 +0100)
committerGitHub <noreply@github.com>
Thu, 6 Mar 2025 13:11:14 +0000 (14:11 +0100)
src/civetweb.c

index c6366547e664097e230285269a1440a66484f2c4..64f58ece532147969b68c7ce9dbf5827efa5b363 100644 (file)
@@ -3480,7 +3480,7 @@ mg_cry_internal_impl(const struct mg_connection *conn,
        DEBUG_TRACE("mg_cry called from %s:%u: %s", func, line, buf);
 
        if (!conn) {
-               puts(buf);
+               fputs(buf, stderr);
                return;
        }