task 2: buffer overrun and curr directory