diff --git a/src/node.cc b/src/node.cc index b07d2ee4d4..b86961fde9 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2790,7 +2790,7 @@ char** Init(int argc, char *argv[]) { // a breakpoint on the first line of the startup script v8argc += 2; v8argv = new char*[v8argc]; - memcpy(v8argv, argv, sizeof(argv) * option_end_index); + memcpy(v8argv, argv, sizeof(*argv) * option_end_index); v8argv[option_end_index] = const_cast("--expose_debug_as"); v8argv[option_end_index + 1] = const_cast("v8debug"); }