1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

mountmgr: Replace sprintf with snprintf to avoid deprecation warnings on macOS.

This commit is contained in:
Brendan Shanks 2024-03-11 11:55:24 -07:00 committed by Alexandre Julliard
parent 81111326ff
commit a5b8e68422

View file

@ -127,7 +127,7 @@ static void detect_devices( const char **paths, char *names, ULONG size )
for (;;)
{
int len = sprintf( unix_path, *paths, i++ );
int len = snprintf( unix_path, sizeof(unix_path), *paths, i++ );
if (len + 2 > size) break;
if (access( unix_path, F_OK ) != 0) break;
strcpy( names, unix_path );