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:
parent
7fb43331f8
commit
536fc87a33
@ -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();
|
||||
|
@ -27,7 +27,7 @@ static
|
||||
void
|
||||
print_usage(bool error)
|
||||
{
|
||||
fprintf((error ? stderr : stdout), kUsage);
|
||||
fputs(kUsage, (error ? stderr : stdout));
|
||||
}
|
||||
|
||||
// add_server
|
||||
|
@ -53,7 +53,7 @@ static
|
||||
void
|
||||
print_usage(bool error)
|
||||
{
|
||||
fprintf((error ? stderr : stdout), kUsage);
|
||||
fputs(kUsage, (error ? stderr : stdout));
|
||||
}
|
||||
|
||||
// print_usage_and_exit
|
||||
|
@ -1367,7 +1367,7 @@ static
|
||||
void
|
||||
print_usage(bool error)
|
||||
{
|
||||
fprintf((error ? stderr : stdout), kUsage);
|
||||
fputs(kUsage, (error ? stderr : stdout));
|
||||
}
|
||||
|
||||
// main
|
||||
|
Loading…
Reference in New Issue
Block a user