1
0
Fork 0

Prevent added autoexec lines in config file to be parsed by sprintf

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1211
This commit is contained in:
Sjoerd van der Berg 2003-08-31 20:34:52 +00:00
parent 10a29d64de
commit 5183db2202

View file

@ -207,7 +207,7 @@ void AUTOEXEC_Init(Section * sec) {
std::string line;
Section_line * section=static_cast<Section_line *>(sec);
char * extra=(char *)section->data.c_str();
if (extra) SHELL_AddAutoexec(extra);
if (extra) SHELL_AddAutoexec("%s",extra);
/* Check for first command being a directory or file */
char buffer[CROSS_LEN];
if (control->cmdline->FindCommand(1,line)) {