Skip to content

Commit

Permalink
Revert an accidental addition for removing ' and '' in filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
Black-Speedy committed Dec 21, 2023
1 parent ef2b7dd commit 842eefe
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions WebShare-Connect/WebShare-Connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 842eefe

Please sign in to comment.