Commit c2d800f1 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

server: Use ARRAY_SIZE instead of open coding it.

parent 03edb068
......@@ -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;
......
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