mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:43:04 +01:00
warnings
This commit is contained in:
parent
7ccb8e73c7
commit
dc5c71c473
@ -328,7 +328,7 @@ void CMD_set( qli_syntax* node)
|
||||
|
||||
case set_password:
|
||||
string = (qli_const*) value;
|
||||
length = MIN(string->con_desc.dsc_length + 1, sizeof(QLI_default_password));
|
||||
length = MIN(string->con_desc.dsc_length + 1u, sizeof(QLI_default_password));
|
||||
fb_utils::copy_terminate(QLI_default_password, (char*) string->con_data, length);
|
||||
break;
|
||||
|
||||
@ -367,7 +367,7 @@ void CMD_set( qli_syntax* node)
|
||||
|
||||
case set_user:
|
||||
string = (qli_const*) value;
|
||||
length = MIN(string->con_desc.dsc_length + 1, sizeof(QLI_default_user));
|
||||
length = MIN(string->con_desc.dsc_length + 1u, sizeof(QLI_default_user));
|
||||
fb_utils::copy_terminate(QLI_default_user, (char*) string->con_data, length);
|
||||
break;
|
||||
|
||||
|
@ -448,7 +448,7 @@ static void explain_printf(int level, const TEXT* control, const TEXT* string)
|
||||
if (string)
|
||||
printf(control, string);
|
||||
else
|
||||
printf(control);
|
||||
printf("%s", control);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -438,7 +438,7 @@ bool LEX_get_line(const TEXT* prompt, TEXT* buffer, int size)
|
||||
// UNIX flavor
|
||||
|
||||
if (prompt)
|
||||
printf(prompt);
|
||||
printf("%s", prompt);
|
||||
|
||||
errno = 0;
|
||||
TEXT* p = buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user