From dc03a47558572dc66ae03350739cda70e1ea4cc5 Mon Sep 17 00:00:00 2001 From: CoderJoshDK <74162303+CoderJoshDK@users.noreply.github.com> Date: Wed, 24 Sep 2025 17:47:24 -0400 Subject: [PATCH] chore: sync changes with ghostty_string_s --- include/ghostty.h | 2 +- src/config/CApi.zig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/ghostty.h b/include/ghostty.h index a2964c227..3f1e0c9d9 100644 --- a/include/ghostty.h +++ b/include/ghostty.h @@ -353,7 +353,7 @@ typedef struct { typedef struct { const char* ptr; uintptr_t len; - uintptr_t cap; + bool sentinel; } ghostty_string_s; typedef struct { diff --git a/src/config/CApi.zig b/src/config/CApi.zig index 154cc0c9c..bdc59797a 100644 --- a/src/config/CApi.zig +++ b/src/config/CApi.zig @@ -130,7 +130,6 @@ export fn ghostty_config_open_path() c.String { return .empty; }; - // Capacity is len + 1 due to sentinel return .fromSlice(path); }