Skip to content

Commit 0b5b8af

Browse files
committed
Fix GCC warning about fprintf used without a string literal and
without format arguments.
1 parent 6d78736 commit 0b5b8af

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ usage(int exitcode, char* program)
112112
if (exitcode)
113113
fprintf(f, "Try `python -h' for more information.\n");
114114
else {
115-
fprintf(f, usage_1);
116-
fprintf(f, usage_2);
117-
fprintf(f, usage_3);
115+
fputs(usage_1, f);
116+
fputs(usage_2, f);
117+
fputs(usage_3, f);
118118
fprintf(f, usage_4, DELIM);
119119
fprintf(f, usage_5, DELIM, PYTHONHOMEHELP);
120120
}

0 commit comments

Comments
 (0)