GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: rename SKIP_CHECK_SIZE to SKIP_CHECK_STRLEN · nodejs/node@bd553e7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_main.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_main.cc‎

Copy file name to clipboardExpand all lines: src/node_main.cc
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@
2828
#include <WinError.h>
2929

3030
#define SKIP_CHECK_VAR "NODE_SKIP_PLATFORM_CHECK"
31-
#define SKIP_CHECK_SIZE 1
3231
#define SKIP_CHECK_VALUE "1"
32+
#define SKIP_CHECK_STRLEN (sizeof(SKIP_CHECK_VALUE) - 1)
3333

3434
int wmain(int argc, wchar_t* wargv[]) {
3535
// Windows Server 2012 (not R2) is supported until 10/10/2023, so we allow it
3636
// to run in the experimental support tier.
37-
char buf[SKIP_CHECK_SIZE + 1];
37+
char buf[SKIP_CHECK_STRLEN + 1];
3838
if (!IsWindows8Point1OrGreater() &&
3939
!(IsWindowsServer() && IsWindows8OrGreater()) &&
4040
(GetEnvironmentVariableA(SKIP_CHECK_VAR, buf, sizeof(buf)) !=
41-
SKIP_CHECK_SIZE ||
42-
strncmp(buf, SKIP_CHECK_VALUE, SKIP_CHECK_SIZE + 1) != 0)) {
41+
SKIP_CHECK_STRLEN ||
42+
strncmp(buf, SKIP_CHECK_VALUE, SKIP_CHECK_STRLEN) != 0)) {
4343
fprintf(stderr, "Node.js is only supported on Windows 8.1, Windows "
4444
"Server 2012 R2, or higher.\n"
4545
"Setting the " SKIP_CHECK_VAR " environment variable "

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.