mirror of https://github.com/BOINC/boinc.git
use safe_strcpy to prevent buffer overflow
fixes CID 27938 found by Coverity
This commit is contained in:
parent
9aea04fe22
commit
145942cbb3
|
@ -306,7 +306,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
INFILE_DESC id;
|
||||
id.is_remote = false;
|
||||
strcpy(id.name, argv[i]);
|
||||
safe_strcpy(id.name, argv[i]);
|
||||
jd.infiles.push_back(id);
|
||||
}
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue