mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
GH-895: Remove use of Variable-Length-Arrays
This commit is contained in:
parent
991501a3d2
commit
15a19414ca
11 changed files with 28 additions and 20 deletions
|
@ -565,7 +565,8 @@ int dbg_execute_command(const char* cmd)
|
|||
delete [] localcmd;
|
||||
|
||||
// Make sure we know this op name.
|
||||
const char* matching_cmds[num_debug_cmds()];
|
||||
auto matching_cmds_buf = std::make_unique<const char*[]>(num_debug_cmds());
|
||||
auto matching_cmds = matching_cmds_buf.get();
|
||||
int num_matches = find_all_matching_cmds(opstring, matching_cmds);
|
||||
|
||||
if ( ! num_matches )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue