Skip to content

Commit 44e0082

Browse files
committed
Corrections in consts and printf buffer refactorings.
1 parent f83ea24 commit 44e0082

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/isql/isql.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7505,7 +7505,7 @@ static unsigned print_item(TEXT** s, const IsqlVar* var, const unsigned length)
75057505
isc_decode_sql_time(var->value.asTime, &times);
75067506
ULONG fractions = (*var->value.asTime) % ISC_TIME_SECONDS_PRECISION;
75077507

7508-
snprintf(d, sizeof(s), "%2.2d:%2.2d:%2.2d.%4.4" ULONGFORMAT,
7508+
snprintf(d, sizeof(d), "%2.2d:%2.2d:%2.2d.%4.4" ULONGFORMAT,
75097509
times.tm_hour, times.tm_min, times.tm_sec, fractions);
75107510

75117511
snprintf(p, bufSize, "%-*.*s ", length, length, d);

src/jrd/constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ inline constexpr const char* NULL_ROLE = "NONE";
9696
// User name assigned to any user granted USR_locksmith rights.
9797
// If this name is changed, modify also the trigger in
9898
// jrd/grant.gdl (which turns into jrd/trig.h.
99-
inline constexpr char* DBA_USER_NAME = "SYSDBA";
99+
inline constexpr const char* DBA_USER_NAME = "SYSDBA";
100100

101101
inline constexpr const char* PRIMARY_KEY = "PRIMARY KEY";
102102
inline constexpr const char* FOREIGN_KEY = "FOREIGN KEY";

0 commit comments

Comments
 (0)