1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

server: Use ARRAY_SIZE instead of open coding it.

This commit is contained in:
Michael Stefaniuc 2022-10-18 19:01:11 +02:00 committed by Alexandre Julliard
parent 03edb068de
commit c2d800f1db

View File

@ -249,7 +249,7 @@ static char *get_nls_dir(void)
dir = malloc( dir_size );
if (dir)
{
if (sysctl( pathname, sizeof(pathname)/sizeof(pathname[0]), dir, &dir_size, NULL, 0 ))
if (sysctl( pathname, ARRAY_SIZE( pathname ), dir, &dir_size, NULL, 0 ))
{
free( dir );
dir = NULL;