diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2023-06-30 19:04:06 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2023-07-03 12:52:03 +0100 |
commit | ee293103b061b39c84334a29eb596e1e07a308da (patch) | |
tree | 3663f5b2d14064e2b533c9ee6f8f68ceeee77da4 /contrib | |
parent | 402587419993d86638f1f81fc4e55625a320ad2f (diff) |
plugins: update lockstep to use g_memdup2
The old g_memdup is deprecated, use the replacement.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230630180423.558337-22-alex.bennee@linaro.org>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/plugins/lockstep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c index e36f0b9562..3614c3564c 100644 --- a/contrib/plugins/lockstep.c +++ b/contrib/plugins/lockstep.c @@ -130,7 +130,7 @@ static void report_divergance(ExecState *us, ExecState *them) } } divergence_log = g_slist_prepend(divergence_log, - g_memdup(&divrec, sizeof(divrec))); + g_memdup2(&divrec, sizeof(divrec))); /* Output short log entry of going out of sync... */ if (verbose || divrec.distance == 1 || diverged) { |