Netfs: Fix wformat-security

Change-Id: Id24585b12a264deb7dc87deb87a523e507773096
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4483
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Franck LeCodeur <cassisian@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Coldfirex 2021-09-18 11:47:46 -05:00 committed by Adrien Destugues
parent 7fb43331f8
commit 536fc87a33
4 changed files with 5 additions and 5 deletions

View File

@ -198,8 +198,8 @@ AuthenticationPanel::GetAuthentication(const char* server,
// window wants to quit
Lock();
sprintf(user, fNameTC->Text());
sprintf(pass, fPassTC->Text());
strcpy(user, fNameTC->Text());
strcpy(pass, fPassTC->Text());
*keep = fKeepUsingCB->Value() == B_CONTROL_ON;
Quit();

View File

@ -27,7 +27,7 @@ static
void
print_usage(bool error)
{
fprintf((error ? stderr : stdout), kUsage);
fputs(kUsage, (error ? stderr : stdout));
}
// add_server

View File

@ -53,7 +53,7 @@ static
void
print_usage(bool error)
{
fprintf((error ? stderr : stdout), kUsage);
fputs(kUsage, (error ? stderr : stdout));
}
// print_usage_and_exit

View File

@ -1367,7 +1367,7 @@ static
void
print_usage(bool error)
{
fprintf((error ? stderr : stdout), kUsage);
fputs(kUsage, (error ? stderr : stdout));
}
// main