mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Fix a mistaken use of a format string in logevent().
logevent() doesn't do printf-style formatting (though the logeventf
wrapper in ssh.c does), so if you need to format a message, it has to
be done separately with dupprintf.
(cherry picked from commit 1659cf3f14
)
This commit is contained in:
@ -398,8 +398,10 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
#ifndef UNPROTECT
|
||||
char *error = NULL;
|
||||
if (! setprocessacl(error)) {
|
||||
logevent(NULL, "Could not restrict process ACL: %s",
|
||||
error);
|
||||
char *message = dupprintf("Could not restrict process ACL: %s",
|
||||
error);
|
||||
logevent(NULL, message);
|
||||
sfree(message);
|
||||
sfree(error);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user