From 8d75865cf366e7a4200430ed4fa8b0d754fa6675 Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Sat, 7 Apr 2018 06:30:28 +0100 Subject: [PATCH] cinera.c: Preserve the case of the markers' text --- cinera/cinera.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cinera/cinera.c b/cinera/cinera.c index a955f35..916ab4c 100644 --- a/cinera/cinera.c +++ b/cinera/cinera.c @@ -14,7 +14,7 @@ typedef struct version CINERA_APP_VERSION = { .Major = 0, .Minor = 5, - .Patch = 43 + .Patch = 44 }; // TODO(matt): Copy in the DB 3 stuff from cinera_working.c @@ -3365,11 +3365,11 @@ HMMLToBuffers(buffers *CollationBuffers, template **BespokeTemplate, char *Filen hsl_colour Colour; StringToColourHash(&Colour, Anno->markers[MarkerIndex].marker); CopyStringToBuffer(&Text, - "%s", + "%.*s", Anno->markers[MarkerIndex].type == HMML_MEMBER ? "member" : "project", Colour.Hue, Colour.Saturation, Colour.Lightness, Colour.Hue, Colour.Saturation, - Readable); + StringLength(Readable), InPtr); } break; case HMML_CATEGORY: @@ -3389,7 +3389,7 @@ HMMLToBuffers(buffers *CollationBuffers, template **BespokeTemplate, char *Filen HasFilterMenu = TRUE; } InsertCategory(&Topics, &LocalTopics, &Media, &LocalMedia, Anno->markers[MarkerIndex].marker); - CopyStringToBuffer(&Text, Readable); + CopyStringToBuffer(&Text, "%.*s", StringLength(Readable), InPtr); } break; case HMML_MARKER_COUNT: break; }