autoraise: Fix -Wformat-security
And use BString.String() for printf(). Change-Id: Id11394bb9278764ed25fde801d82a177ad0d88b9 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3318 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
cc149396d1
commit
e769acbe80
@ -50,8 +50,8 @@ void AutoRaiseApp::ArgvReceived(int32 argc, char ** argv)
|
||||
BString usageNote =
|
||||
"\nUsage: " APP_NAME " [options]\n\t--deskbar\twill not open "
|
||||
"window, will just put " APP_NAME " into tray\n\t--persist (default) will put "
|
||||
APP_NAME " into tray such that it remains across reboots\n";
|
||||
printf(usageNote);
|
||||
APP_NAME " into tray such that it remains across reboots";
|
||||
puts(usageNote.String());
|
||||
fDone = true;
|
||||
be_app_messenger.SendMessage(B_QUIT_REQUESTED);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user