char buffer[3];
// Read country code
- loc_country_copy_code(buffer, dbobj->code);
+ loc_country_code_copy(buffer, dbobj->code);
// Create a new country object
int r = loc_country_new(ctx, country, buffer);
return r;
// Continent Code
- loc_country_copy_code(buffer, dbobj->continent_code);
+ loc_country_code_copy(buffer, dbobj->continent_code);
r = loc_country_set_continent_code(*country, buffer);
if (r)