Fixed buffer overflow in output option commandline argument (VL-ID 2068) (Hosein Askari)

This commit is contained in:
Xavier Roche
2017-05-13 14:01:34 +02:00
parent 8fb4f68f17
commit d1dadb3f2e

View File

@@ -2996,7 +2996,7 @@ static int hts_main_internal(int argc, char **argv, httrackp * opt) {
}
}
strcpy(n_lock,
strcpybuff(n_lock,
fconcat(OPT_GET_BUFF(opt), OPT_GET_BUFF_SIZE(opt), StringBuff(opt->path_log),
"hts-in_progress.lock"));
//sprintf(n_lock,fconcat(OPT_GET_BUFF(opt), StringBuff(opt->path_log),"hts-in_progress.lock"),n);