Index: src/OFLocale.m ================================================================== --- src/OFLocale.m +++ src/OFLocale.m @@ -460,15 +460,15 @@ territory = OF_BSWAP32_IF_LE(locale->loc_CountryCode); for (length = 0; length < 4; length++) - if (((char *)territory)[length] == 0) + if (((char *)&territory)[length] == 0) break; _territory = [[OFString alloc] - initWithCString: territory + initWithCString: (char *)&territory encoding: _encoding length: length]; } @finally { CloseLocale(locale); }