From 4fa8e23efc2d3e2740edc6c8f17e16500ef76e0a Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 2 Sep 2025 18:52:00 +0200 Subject: [PATCH] Update rexm.c --- tools/rexm/rexm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/rexm/rexm.c b/tools/rexm/rexm.c index 2e0294aa0..c83ae0eaf 100644 --- a/tools/rexm/rexm.c +++ b/tools/rexm/rexm.c @@ -370,15 +370,13 @@ int main(int argc, char *argv[]) { // Verify example exists in collection to be removed char *exColInfo = LoadFileText(exCollectionFilePath); - if ((TextFindIndex(exColInfo, argv[2]) != -1) && // Example in the collection - (TextFindIndex(exName, "_") != -1)) // Valid example name + if (TextFindIndex(exColInfo, argv[2]) != -1) // Example in the collection { - strcpy(exName, argv[2]); // Register example name for removal strncpy(exCategory, exName, TextFindIndex(exName, "_")); opCode = OP_BUILD; } - else LOG("WARNING: REMOVE: Example not available in the collection\n"); + else LOG("WARNING: BUILD: Example not available in the collection\n"); UnloadFileText(exColInfo); } }