mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 05:51:53 -06:00
disas/m68k: Replace sprintf() by snprintf()
sprintf() is deprecated on Darwin since macOS 13.0 / XCode 14.1, resulting in painful developper experience. Use snprintf() instead. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20240411104340.6617-2-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a93b4061b0
commit
28d5bfc098
1 changed files with 1 additions and 1 deletions
|
@ -1000,7 +1000,7 @@ print_indexed (int basereg,
|
||||||
|
|
||||||
/* Generate the text for the index register.
|
/* Generate the text for the index register.
|
||||||
Where this will be output is not yet determined. */
|
Where this will be output is not yet determined. */
|
||||||
sprintf (buf, "%s:%c%s",
|
snprintf(buf, sizeof(buf), "%s:%c%s",
|
||||||
reg_names[(word >> 12) & 0xf],
|
reg_names[(word >> 12) & 0xf],
|
||||||
(word & 0x800) ? 'l' : 'w',
|
(word & 0x800) ? 'l' : 'w',
|
||||||
scales[(word >> 9) & 3]);
|
scales[(word >> 9) & 3]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue