Merge pull request #47 from lioncash/dat-overflow-doe

Fix a sprintf size typo which would overwrite the error buffer in bim's open_file func
This commit is contained in:
Kevin Lange 2014-05-21 18:06:38 -07:00
commit ad303097d3

View File

@ -567,7 +567,7 @@ void open_file(char * file) {
if (!f) {
char buf[1024];
snprintf(buf, 1204, "Could not open %s", file);
snprintf(buf, 1024, "Could not open %s", file);
render_error(buf);
return;
}