diff options
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx index 1ba0279e9724..1ffa982438fd 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjre.cxx @@ -59,7 +59,7 @@ char const* const* SunInfo::getJavaExePaths(int * size) "jre/bin/java" #endif }; - *size = sizeof (ar) / sizeof (char*); + *size = SAL_N_ELEMENTS(ar); return ar; } @@ -79,7 +79,7 @@ char const* const* SunInfo::getRuntimePaths(int * size) #endif }; - *size = sizeof(ar) / sizeof (char*); + *size = SAL_N_ELEMENTS(ar); return ar; } @@ -94,7 +94,7 @@ char const* const* SunInfo::getLibraryPaths(int* size) "/lib/" JFW_PLUGIN_ARCH }; - *size = sizeof(ar) / sizeof (char*); + *size = SAL_N_ELEMENTS(ar); return ar; #else *size = 0; |