From: Tom Lane Date: Fri, 14 May 2010 00:39:51 +0000 (+0000) Subject: Remove another unsafe use of random data as a format string. X-Git-Tag: REL9_0_BETA2~119 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=0546906064cead624981855ac6c7e7869dbe96ac;p=postgresql.git Remove another unsafe use of random data as a format string. --- 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 /*