From 0546906064cead624981855ac6c7e7869dbe96ac Mon Sep 17 00:00:00 2001 From: Tom Lane <tgl@sss.pgh.pa.us> Date: Fri, 14 May 2010 00:39:51 +0000 Subject: [PATCH] Remove another unsafe use of random data as a format string. --- contrib/pg_upgrade/controldata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pg_upgrade/controldata.c b/contrib/pg_upgrade/controldata.c index 78d62c76f4d..0011c20bf1f 100644 --- a/contrib/pg_upgrade/controldata.c +++ b/contrib/pg_upgrade/controldata.c @@ -88,7 +88,7 @@ get_control_data(migratorContext *ctx, ClusterInfo *cluster, bool live_check) while (fgets(bufin, sizeof(bufin), output)) { if (ctx->debug) - fprintf(ctx->debug_fd, bufin); + fputs(bufin, ctx->debug_fd); #ifdef WIN32 /* -- GitLab