From 8c5f269f908c759d934a1da42dd491bff67c1a37 Mon Sep 17 00:00:00 2001 From: Andrew Paprocki Date: Sun, 7 Oct 2012 10:04:26 +0200 Subject: [PATCH] Fix -Wsizeof-array-argument compiler warning. --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }