Re: [hatari-devel] sprintf deprecated in macOS 13.0 |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
> Am 06.11.2022 um 18:17 schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>: > > > >> Am 05.11.2022 um 21:58 schrieb Thomas Huth <th.huth@xxxxxxxxx>: >> >> Am Sat, 5 Nov 2022 17:37:13 +0100 >> schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>: >>> >>> I appended a patch for the DSP code. It replaces all sprintf() with snprintf(). There are quite a lot left in other parts of the code, but not all are shared between Previous and Hatari. >> >> Thanks, patch is committed now! >> >> Yes, I know there are also lots of other spots left, I just thought that >> you'd primarily be interested in the DSP code since that could still be >> shared between Previous and Hatari ... but if you're interested, feel free >> to send patches for the other parts, too. Otherwise, I might have a look >> later. >> >> Thomas >> > I just noticed that the deprecation warnings are only generated for C++ files (Previous is partially C++). Anyway it would improve security to convert all sprintf() to snprintf() over time. But there is no hurry. Just for the sake of comepleteness: There is one last sprintf in the DSP code. Patch is appended.
Attachment:
sprintf.diff
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |