Skip to content

Commit

Permalink
minor fixes to make gcc happy
Browse files Browse the repository at this point in the history
No changes other that cosmetic
  • Loading branch information
mm2 committed Oct 6, 2023
1 parent 42309a0 commit c5c80d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/cmscgats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions src/cmsps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c5c80d3

Please sign in to comment.