1.1 --- a/templates/native/locale.c Sat Feb 11 15:34:30 2017 +0100
1.2 +++ b/templates/native/locale.c Sat Feb 11 16:04:40 2017 +0100
1.3 @@ -46,7 +46,7 @@
1.4 out = __ALLOCATE(length + 1, sizeof(char));
1.5 strncpy(out, result, length);
1.6
1.7 - return __new_str(result, length);
1.8 + return __new_str(result);
1.9 }
1.10
1.11 __attr __fn_native_locale_setlocale(__attr __args[])
1.12 @@ -69,7 +69,7 @@
1.13 out = __ALLOCATE(length + 1, sizeof(char));
1.14 strncpy(out, result, length);
1.15
1.16 - return __new_str(result, length);
1.17 + return __new_str(result);
1.18 }
1.19
1.20 /* Module initialisation. */