tangled
alpha
login
or
join now
altagos.dev
/
austin-converter
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
fix: dupe strings
altagos.dev
8 months ago
2b0458e3
bc3dd573
verified
This commit was signed with the committer's
known signature
.
altagos.dev
SSH Key Fingerprint:
SHA256:UbTjEcCZlc6GzQWLCuDK3D//HESWD2xFPkzue9XMras=
+2
-5
1 changed file
expand all
collapse all
unified
split
src
austin.zig
+2
-5
src/austin.zig
···
366
366
) catch return ParseError.InvalidLineNumber;
367
367
368
368
var f: Frame = .{ .line_number = line_number };
369
369
-
f.module = try self.arena.alloc(u8, module.len);
370
370
-
@memcpy(@constCast(f.module), module);
371
371
-
372
372
-
f.function = try self.arena.alloc(u8, function.len);
373
373
-
@memcpy(@constCast(f.function), function);
369
369
+
f.module = try self.arena.dupe(u8, module);
370
370
+
f.function = try self.arena.dupe(u8, function);
374
371
375
372
return f;
376
373
} else {