From 2b7b81808f20fd4dee4b3f5e9d51b0587ce85cc8 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Sat, 9 Jul 2022 18:16:42 +0100 Subject: [PATCH] =?UTF-8?q?[misc]=20improve/factorize=20'/'=20=E2=86=94=20?= =?UTF-8?q?'\'=20conversions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/iso.c | 32 +++++++++++--------------------- src/rufus.h | 6 +++++- src/rufus.rc | 10 +++++----- 3 files changed, 21 insertions(+), 27 deletions(-) diff --git a/src/iso.c b/src/iso.c index cf502e56..b563e464 100644 --- a/src/iso.c +++ b/src/iso.c @@ -328,15 +328,14 @@ static BOOL check_iso_props(const char* psz_dirname, int64_t file_length, const static void fix_config(const char* psz_fullpath, const char* psz_path, const char* psz_basename, EXTRACT_PROPS* props) { BOOL modified = FALSE; - size_t i, nul_pos; + size_t nul_pos; char *iso_label = NULL, *usb_label = NULL, *src, *dst; - nul_pos = safe_strlen(psz_fullpath); src = safe_strdup(psz_fullpath); if (src == NULL) return; - for (i=0; i