makedep: Replace sprintf with snprintf to avoid a deprecation warning on macOS.

This commit is contained in:
Brendan Shanks 2023-10-23 14:02:21 -05:00 committed by Alexandre Julliard
parent 26201ca92d
commit c17d1adb6e
Notes: Alexandre Julliard 2023-10-24 16:27:09 -05:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/-/merge_requests/4160

View file

@ -3898,7 +3898,7 @@ static FILE *create_temp_file( const char *orig )
for (i = 0; i < 100; i++)
{
sprintf( name, "%s.tmp%08x", orig, id );
snprintf( name, strlen(orig) + 13, "%s.tmp%08x", orig, id );
if ((fd = open( name, O_RDWR | O_CREAT | O_EXCL, 0666 )) != -1)
{
ret = fdopen( fd, "w" );