summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/utils/tzset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/tzset.c b/winsup/utils/tzset.c
index 02ac5f3f2..b7fd1aec2 100644
--- a/winsup/utils/tzset.c
+++ b/winsup/utils/tzset.c
@@ -195,7 +195,7 @@ main (int argc, char **argv)
*country = L'\0';
geo = GetUserGeoID (GEOCLASS_NATION);
if (geo != GEOID_NOT_AVAILABLE)
- GetGeoInfoW (geo, GEO_ISO2, country, sizeof country, 0);
+ GetGeoInfoW (geo, GEO_ISO2, country, sizeof country / sizeof (*country), 0);
/* If, for some reason, the Geo-location isn't available, we use the locale
setting instead. */
if (!*country)