Userland: Fix passing a non-format string to fprintf()

This commit is contained in:
Sergey Bugaev 2020-08-25 17:51:04 +03:00 committed by Andreas Kling
parent f808810d00
commit 3d936d51fd
Notes: sideshowbarker 2024-07-19 02:59:09 +09:00

View file

@ -132,7 +132,7 @@ int main(int argc, char** argv)
} else {
auto new_password = Core::get_password("New password: ");
if (new_password.is_error()) {
fprintf(stderr, strerror(new_password.error()));
fprintf(stderr, "%s\n", strerror(new_password.error()));
return 1;
}