Skip to content

Commit

Permalink
bugfix: giving a string to print to the second argument of fprintf ca…
Browse files Browse the repository at this point in the history
…n result in wrong print.

  . "%t" in the string is regarded as a hole indicator and is not printed as it is.
  • Loading branch information
hyunikn committed Nov 5, 2024
1 parent f133759 commit 484fdd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CTP/sql_by_cci/execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ execute (FILE * fp, char conn, const SqlStateStruce *pSqlState)
_END:
if (server_output_buffer)
{
fprintf (fp, server_output_buffer);
fprintf (fp, "%s", server_output_buffer);
}
if (req > 0)
cci_close_req_handle (req);
Expand Down Expand Up @@ -2240,7 +2240,7 @@ executebind (FILE * fp, char conn, char *param, const SqlStateStruce *pSqlState)
_END:
if (server_output_buffer)
{
fprintf (fp, server_output_buffer);
fprintf (fp, "%s", server_output_buffer);
}
if (req > 0)
cci_close_req_handle (req);
Expand Down

0 comments on commit 484fdd2

Please sign in to comment.