Commit 63373b6d authored by Matthew Burket's avatar Matthew Burket

Close the file the right way

parent bf8960c3
......@@ -31,7 +31,7 @@ int main() {
if (strlen(readBuff) > 0) {
FILE *fp = fopen(HISTORY_FILE, "a+");
write(fp->_fileno, readBuff, BUFFSIZE);
// Remove the newline from fgets
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