From c5c80d32b84af97c458eec1fc5e9fbbe20a93236 Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Fri, 6 Oct 2023 15:41:15 +0200 Subject: [PATCH] minor fixes to make gcc happy No changes other that cosmetic --- src/cmscgats.c | 4 ++-- src/cmsps2.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/cmscgats.c b/src/cmscgats.c index 15210f24..c37de766 100644 --- a/src/cmscgats.c +++ b/src/cmscgats.c @@ -486,13 +486,13 @@ cmsBool BuildAbsolutePath(const char *relPath, const char *basePath, char *buffe // Already absolute? if (isabsolutepath(relPath)) { - strncpy(buffer, relPath, MaxLen); + memcpy(buffer, relPath, MaxLen); buffer[MaxLen-1] = 0; return TRUE; } // No, search for last - strncpy(buffer, basePath, MaxLen); + memcpy(buffer, basePath, MaxLen); buffer[MaxLen-1] = 0; tail = strrchr(buffer, DIR_CHAR); diff --git a/src/cmsps2.c b/src/cmsps2.c index aa473b6d..70e4ea8d 100644 --- a/src/cmsps2.c +++ b/src/cmsps2.c @@ -752,9 +752,7 @@ int EmitCIEBasedDEF(cmsIOHANDLER* m, cmsPipeline* Pipeline, cmsUInt32Number Inte const char* PostMaj; const char* PreMin, *PostMin; cmsStage* mpe; - - static char buffer[2048]; - + mpe = Pipeline->Elements; switch (cmsStageInputChannels(mpe)) {