This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix -Wsizeof-array-argument compiler warning.

  • Loading branch information...
apaprocki authored and bnoordhuis committed Oct 7, 2012
1 parent 59c166c commit 8c5f269f908c759d934a1da42dd491bff67c1a37
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node.cc
View
@@ -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<char*>("--expose_debug_as");
v8argv[option_end_index + 1] = const_cast<char*>("v8debug");
}

0 comments on commit 8c5f269

Please sign in to comment.