Commit c17d1adb authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

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

parent 26201ca9
......@@ -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" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment