From b0501d20acb6def68f56f2f558eb2aed7de99627 Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Mon, 31 May 2021 22:39:25 +0100 Subject: [PATCH] cinera.c: Fix sizeof() on a string literal --- cinera/cinera.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinera/cinera.c b/cinera/cinera.c index df8e44c..a0c73d6 100644 --- a/cinera/cinera.c +++ b/cinera/cinera.c @@ -23,7 +23,7 @@ typedef struct version CINERA_APP_VERSION = { .Major = 0, .Minor = 8, - .Patch = 16 + .Patch = 17 }; #include // NOTE(matt): varargs @@ -10772,7 +10772,7 @@ HMMLToBuffers(buffers *CollationBuffers, template *BespokeTemplate, string BaseF NullTopic ? "title=\"Timestamps that don't fit into the above topic(s) may be filtered using this pseudo-topic\" " : "", SanitisedMarker, SanitisedMarker, - NullTopic ? (int)sizeof("(null topic)-1") : (int)This->Marker.Length, + NullTopic ? (int)sizeof("(null topic)")-1 : (int)This->Marker.Length, NullTopic ? "(null topic)" : This->Marker.Base); } CopyStringToBuffer(&MenuBuffers.FilterTopics,