From 0bb69cb67078dfa921b5b8a42275ef31dfbc9a56 Mon Sep 17 00:00:00 2001 From: suresh Date: Sun, 25 Jan 2026 11:24:22 -0500 Subject: fixed beffer overflow in vector. Added serialize and deserialize in json with vector reading from the struct with json --- src/codegen/codegen_stmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen/codegen_stmt.c') diff --git a/src/codegen/codegen_stmt.c b/src/codegen/codegen_stmt.c index ff8ea46..cba55b4 100644 --- a/src/codegen/codegen_stmt.c +++ b/src/codegen/codegen_stmt.c @@ -1519,7 +1519,7 @@ void codegen_node_single(ParserContext *ctx, ASTNode *node, FILE *out) emit_auto_type(ctx, node->repl_print.expr, node->token, out); fprintf(out, " _zval = ("); codegen_expression(ctx, node->repl_print.expr, out); - fprintf(out, "); fprintf(stdout, _z_str(_zval), _zval); fprintf(stdout, " + fprintf(out, "); fprintf(stdout, _z_str(_zval), _z_arg(_zval)); fprintf(stdout, " "\"\\n\"); }\n"); break; } -- cgit v1.2.3