1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

Fix a dozen or so places that were passing unpredictable data strings

as elog format strings.  Hai-Chen Tu pointed out the problem in
contrib/dbmirror, but it wasn't the only such error.
This commit is contained in:
Tom Lane
2002-11-22 16:25:55 +00:00
parent 7082e7e43a
commit 55994bab8e
6 changed files with 17 additions and 17 deletions

View File

@@ -144,7 +144,7 @@ float seg_atof ( char *value ) {
if ( errno ) {
snprintf(buf, 256, "numeric value %s unrepresentable", value);
reset_parse_buffer();
elog(ERROR, buf);
elog(ERROR, "%s", buf);
}
return result;
@@ -175,7 +175,7 @@ int seg_yyerror ( char *msg ) {
);
reset_parse_buffer();
elog(ERROR, buf);
elog(ERROR, "%s", buf);
return 0;
}