Skip to content

Commit

Permalink
fixup! Fix instances of -Wformat-truncation
Browse files Browse the repository at this point in the history
Change-Id: I13639e0114c52bcbb644129aa6d63b6f7699dbff
  • Loading branch information
schwabe committed Mar 25, 2024
1 parent 2760d0f commit 02d5900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/openvpn/ssl_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2130,7 +2130,7 @@ static void
print_cert_details(X509 *cert, char *buf, size_t buflen)
{
EVP_PKEY *pkey = X509_get_pubkey(cert);
char pkeybuf[128] = { 0 };
char pkeybuf[64] = { 0 };
print_pkey_details(pkey, pkeybuf, sizeof(pkeybuf));

char sig[128] = { 0 };
Expand Down
3 changes: 2 additions & 1 deletion src/openvpnserv/interactive.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <sddl.h>
#include <shellapi.h>
#include <mstcpip.h>
#include <stdint.h>

#include <versionhelpers.h>

Expand Down Expand Up @@ -2002,7 +2003,7 @@ RunOpenvpn(LPVOID p)
ReturnLastError(pipe, L"malloc");
goto out;
}
swprintf(cmdline, cmdline_size, L"openvpn %ls --msg-channel %p",
swprintf(cmdline, cmdline_size, L"openvpn %ls --msg-channel %" PRIuPTR,
sud.options, svc_pipe);

if (!CreateEnvironmentBlock(&user_env, imp_token, FALSE))
Expand Down

0 comments on commit 02d5900

Please sign in to comment.