8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:43:04 +01:00
This commit is contained in:
alexpeshkoff 2011-01-21 16:36:27 +00:00
parent 7ccb8e73c7
commit dc5c71c473
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;