Skip to content

Commit 0546906

Browse files
committed
Remove another unsafe use of random data as a format string.
1 parent 8eac397 commit 0546906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/controldata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ get_control_data(migratorContext *ctx, ClusterInfo *cluster, bool live_check)
8888
while (fgets(bufin, sizeof(bufin), output))
8989
{
9090
if (ctx->debug)
91-
fprintf(ctx->debug_fd, bufin);
91+
fputs(bufin, ctx->debug_fd);
9292

9393
#ifdef WIN32
9494
/*

0 commit comments

Comments
 (0)