Skip to content

Commit

Permalink
chore: bump error message buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Aug 8, 2024
1 parent aeea37d commit 924143e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/certs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct Cleanup {
// Throw an exception based on the last Windows error message.
void ThrowWindowsError(const char* call) {
DWORD err = GetLastError();
CHAR err_msg_buf[128];
CHAR err_msg_buf[256] = {};

FormatMessageA(
FORMAT_MESSAGE_FROM_SYSTEM |
Expand All @@ -36,7 +36,7 @@ void ThrowWindowsError(const char* call) {
}
}

char buf[256];
char buf[384] = {};
snprintf(buf,
sizeof(buf),
"%s failed with: %s (0x%lx)",
Expand Down

0 comments on commit 924143e

Please sign in to comment.