@@ -636,7 +636,7 @@ void JiFFI2::cmd_uploadBJL_Click(void)
636636 create_bjl ();
637637 // create the file name
638638 char file[MAX_PATH ], buffer[10 ];
639- sprintf_s (file, " %s%s_load_%06x_run_%06x_jiffi%i.bjl" , out, name, loadadr, runadr, chk_JiFFI.Value );
639+ snprintf (file, sizeof (file) , " %s%s_load_%06x_run_%06x_jiffi%i.bjl" , out, name, loadadr, runadr, chk_JiFFI.Value );
640640 printf (" \n Create temporary file %s\n " , file);
641641 // create the command arguments
642642 QStringList arguments;
@@ -692,7 +692,7 @@ void JiFFI2::HandleSkunkboardTempROM0(void)
692692 dopatches ();
693693 create_rom (0 );
694694 // create the file name
695- sprintf_s (file, " %s%s_jiffi%i.rom" , out, name, chk_JiFFI.Value );
695+ snprintf (file, sizeof (file) , " %s%s_jiffi%i.rom" , out, name, chk_JiFFI.Value );
696696 printf (" \n Create temporary file %s\n " , file);
697697 // create the command arguments
698698 QStringList arguments;
@@ -893,7 +893,7 @@ void JiFFI2::cmd_uploadskunk_Click(void)
893893 create_coff ();
894894 // create the file name
895895 char file[MAX_PATH ];
896- sprintf_s (file, " %s%s_jiffi%i.coff" , out, name, chk_JiFFI.Value );
896+ snprintf (file, sizeof (file) , " %s%s_jiffi%i.coff" , out, name, chk_JiFFI.Value );
897897 printf (" \n Create temporary file %s\n " , file);
898898 // create the command line
899899 QStringList arguments;
0 commit comments