diff --git a/src/hvm.cuh b/src/hvm.cuh index f4d73ea2..1c07a6c3 100644 --- a/src/hvm.cuh +++ b/src/hvm.cuh @@ -194,8 +194,8 @@ typedef struct Tup { extern Tup gnet_readback_tup(GNet* gnet, Port port, u32 size); typedef struct Str { - u32 text_len; - char text_buf[256]; + u32 len; + char *buf; } Str; // Reads a constructor-encoded string (of length at most 255 characters), diff --git a/src/hvm.h b/src/hvm.h index b4930e25..b9b59500 100644 --- a/src/hvm.h +++ b/src/hvm.h @@ -206,8 +206,8 @@ typedef struct Tup { extern Tup readback_tup(Net* net, Book* book, Port port, u32 size); typedef struct Str { - u32 text_len; - char text_buf[256]; + u32 len; + char *buf; } Str; // Reads a constructor-encoded string (of length at most 255 characters),