Module: wine Branch: master Commit: c2d800f1dbf83c8f0599db6d831e3246eb89fee3 URL: https://gitlab.winehq.org/wine/wine/-/commit/c2d800f1dbf83c8f0599db6d831e324...
Author: Michael Stefaniuc mstefani@winehq.org Date: Tue Oct 18 19:01:11 2022 +0200
server: Use ARRAY_SIZE instead of open coding it.
---
server/unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/unicode.c b/server/unicode.c index 86a1217b01f..edb296be0c8 100644 --- a/server/unicode.c +++ b/server/unicode.c @@ -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;