1.1 --- a/src/os/linux/vm/attachListener_linux.cpp Wed Mar 12 18:09:34 2008 -0700 1.2 +++ b/src/os/linux/vm/attachListener_linux.cpp Wed Mar 12 18:37:03 2008 -0700 1.3 @@ -232,7 +232,7 @@ 1.4 // where <ver> is the protocol version (1), <cmd> is the command 1.5 // name ("load", "datadump", ...), and <arg> is an argument 1.6 int expected_str_count = 2 + AttachOperation::arg_count_max; 1.7 - int max_len = (strlen(ver_str) + 1) + (AttachOperation::name_length_max + 1) + 1.8 + const int max_len = (sizeof(ver_str) + 1) + (AttachOperation::name_length_max + 1) + 1.9 AttachOperation::arg_count_max*(AttachOperation::arg_length_max + 1); 1.10 1.11 char buf[max_len];