From 64036d4b6149b7d2f3bd85bbc697f594479bbe48 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 24 Nov 2023 16:35:15 +0100 Subject: [PATCH] cleared const conversation warning on safe snipet --- source/build.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/build.c b/source/build.c index dbd6ec3..88ac004 100644 --- a/source/build.c +++ b/source/build.c @@ -120,14 +120,13 @@ static bool samelist(FILE *oldrefs, char **names, int count) { } /* create the file name(s) used for a new cross-referene */ - void setup_build_filenames(char *reffile) { char *path; /* file pathname */ char *s; /* pointer to basename in path */ path = malloc(strlen(reffile) + 10u); strcpy(path, reffile); - s = basename(path); + s = (char *)basename(path); // this is save because the returned pointer is inside $path, and we know we can edit it *s = '\0'; strcat(path, "n"); ++s;