Re: [hatari-devel] sprintf deprecated in macOS 13.0 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] sprintf deprecated in macOS 13.0
- From: Andreas Grabher <andreas_g86@xxxxxxxxxx>
- Date: Sun, 6 Nov 2022 18:17:39 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1667755072; bh=1UtoJzOjtxMTnaO2rvmtuLJeGRO0uvowNydKA0Gl7JQ=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=kGKqLJq0ziLWon3R0Lzm/PbIAYVvdGoon/rMwIM9/W3CYtB0NlgzBgFf7ax4A3VGu 7vqUiEt7uPzHCd674PoOPIRPyt6nvSn3pzp+zyiCppFRZVPUGUlOt7fDHAMmV6GPb3 7v95Yvg6vjcpJRLKLYd6TnBMBKRjADtH2rPUyG9p4I7QZOAhjO86FMRwfzOiD5cwdw avtu2WOPd0vHwfmdtHQKA/Pn3YFOGaWDbLNrA0g4QhDfab77A/Gz6Kamr/8V3lponk IrW4Ga/qj0EDDI5sUQxYtJvubG9mEJb2B4MvKE/yWYYBsPG7RAOo7z8c7mPYYgsSZ7 j4hlsSrTbgR5g==
> 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.