Commit e42ae257 authored by dragontamer lance's avatar dragontamer lance

Lol i didn't fclose() my files. That's embarrassing.

parent c6e9b0e0
......@@ -73,6 +73,7 @@ int main(int argc, char **argv)
}
}
}
fclose(infile);
}
else
{
......
#include <stdio.h> /* printf */
#include <stdlib.h> /* atoi */
#include <ctype.h> /* isdigit */
/* This code is unfortunately pretty ugly, as a result of the expanding
scope of the tool.
It was originally intended merely for converting inventory files,
which are far more predictable than some of the other kinds of save
files in terms of things like where strings occur.
As a result, this code works, but it's pretty terrible at the same time,
and I wouldn't recommend using it for anything but inspiration to make
something less terrible.
*/
int main(int argc, char **argv)
{
if(argc == 2)
......@@ -92,6 +103,7 @@ int main(int argc, char **argv)
} /* != EOF */
}
fclose(infile);
return 0;
}
else
......
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