Re: [hatari-devel] sprintf deprecated in macOS 13.0

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]



> Am 05.11.2022 um 11:38 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
> 
> Am Sat, 5 Nov 2022 10:01:49 +0100
> schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
> 
>> Hello all,
>> 
>> it seems sprintf is deprecated in macOS 13.0. I am getting lots of warnings. They recommend to replace it with snprintf. I think we should do that.
> 
> Uh, that will be another big code churn ... but I agree, it's likely a good
> idea. Do you maybe want to do the convertion in the DSP code in
> Previous? ... then I could port the patch to Hatari.
> 
> Thomas
> 
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.

Attachment: sprintf.diff
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/