mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-30 19:11:39 +00:00
pkg/sentry: uuid string is null-terminated
This commit is contained in:
@@ -14,8 +14,8 @@ pub const UUID = struct {
|
||||
return c.sentry_uuid_is_nil(&self.value) != 0;
|
||||
}
|
||||
|
||||
pub fn string(self: UUID) [37]u8 {
|
||||
var buf: [37]u8 = undefined;
|
||||
pub fn string(self: UUID) [36:0]u8 {
|
||||
var buf: [36:0]u8 = undefined;
|
||||
c.sentry_uuid_as_string(&self.value, &buf);
|
||||
return buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user