We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa1aab9 commit 4dabedfCopy full SHA for 4dabedf
graphpass.c
@@ -145,7 +145,8 @@ int main (int argc, char *argv[]) {
145
printf("Removing redundant slashes from filename.\n");
146
path[strlen(path)+1] = '\0';
147
}
148
- else if (FILENAME[0] != '/' && DIRECTORY[(sizeof(DIRECTORY)/sizeof(DIRECTORY[0])-2)] != '/') {
+ else if (FILENAME[0] != '/' && DIRECTORY[strlen(DIRECTORY)-1] != '/') {
149
+ printf("%s", DIRECTORY[strlen(DIRECTORY)]);
150
printf("Adding slash separator.\n");
151
strncat(path, "/", 1);
152
printf ("Current path: %s.\n", path);
0 commit comments