Fix test that broke due to decompressing to too small of a scope.
This commit is contained in:
parent
96534e598e
commit
c3c5951d44
@ -116,8 +116,8 @@ void mp_obj_exception_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kin
|
|||||||
if (o->base.type == &mp_type_OSError && MP_OBJ_IS_SMALL_INT(o->args->items[0])) {
|
if (o->base.type == &mp_type_OSError && MP_OBJ_IS_SMALL_INT(o->args->items[0])) {
|
||||||
const compressed_string_t* common = mp_common_errno_to_str(o->args->items[0]);
|
const compressed_string_t* common = mp_common_errno_to_str(o->args->items[0]);
|
||||||
const char* msg;
|
const char* msg;
|
||||||
if (common != NULL) {
|
char decompressed[50];
|
||||||
char decompressed[common->length];
|
if (common != NULL && common->length <= 50) {
|
||||||
decompress(common, decompressed);
|
decompress(common, decompressed);
|
||||||
msg = decompressed;
|
msg = decompressed;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user