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:
parent
10a29d64de
commit
5183db2202
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue