mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
makedep: Replace sprintf with snprintf to avoid a deprecation warning on macOS.
This commit is contained in:
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
1 changed files with 1 additions and 1 deletions
|
@ -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" );
|
||||
|
|
Loading…
Reference in a new issue