From 842eefe1f6e862bc405df99cce5a0d1ab8debb94 Mon Sep 17 00:00:00 2001 From: Black Speedy <78355795+Black-Speedy@users.noreply.github.com> Date: Thu, 21 Dec 2023 16:48:33 +0100 Subject: [PATCH] Revert an accidental addition for removing ' and '' in filepath --- WebShare-Connect/WebShare-Connect.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/WebShare-Connect/WebShare-Connect.c b/WebShare-Connect/WebShare-Connect.c index 9bc9bcc..5f7f6ce 100644 --- a/WebShare-Connect/WebShare-Connect.c +++ b/WebShare-Connect/WebShare-Connect.c @@ -23,17 +23,6 @@ int main(int argc, char const* argv[]) printf("What is the file path?\n"); char filePath[256]; // Adjust size according to your requirements scanf("%255s", filePath); - //remove any " or ' from the file path - char* p = filePath; - while (*p != '\0') { - if (*p == '"' || *p == '\'') { - memmove(p, p + 1, strlen(p)); - } - else { - p++; - } - } - user_argv[0] = strdup(argv[0]); // Program name user_argv[1] = strdup(mode);