Commit 8dc69800 authored by Zara Saldanha's avatar Zara Saldanha

Update traverse.c

parent fa6551ac
......@@ -100,7 +100,7 @@ void process(char *root)
min = file_info.st_size;
}
if (file_info.st_mtime > latest) {
strcpy(dName, dp->d_name);
strcpy(dName, fd->d_name);
latest = file_info.st_mtime;
}
sum = sum + file_info.st_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment