Skip to content

Commit

Permalink
ls should work?
Browse files Browse the repository at this point in the history
  • Loading branch information
Sail338 committed Apr 10, 2018
1 parent 286378a commit b195e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Asst3/src/sfs.c
Expand Up @@ -318,7 +318,7 @@ Inode * getFilePath(char * path)
fileNameIndex--;
}
fileNameIndex++;
if(fileNameIndex > strlen(path))
if(fileNameIndex > strlen(path)-1)
{
log_msg("Small Path - Almost certain its root: %s\n",path);
return FT->files[0];
Expand Down

0 comments on commit b195e76

Please sign in to comment.