Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stsquad committed Jul 3, 2023
1 parent 4025874 commit ee29310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/plugins/lockstep.c
Expand Up @@ -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) {
Expand Down

0 comments on commit ee29310

Please sign in to comment.