Explorar el Código

Print to stderr instead of stdout in mg_cry_internal_impl

stevenwdv hace 3 meses
padre
commit
dc375064b3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -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;
 	}