Skip to content
Snippets Groups Projects
Commit ffcacc97 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use SAFECOPY() - CID 345193

parent 0553ef9b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2559 passed
...@@ -1737,9 +1737,9 @@ js_new_user(JSContext *cx, uintN argc, jsval *arglist) ...@@ -1737,9 +1737,9 @@ js_new_user(JSContext *cx, uintN argc, jsval *arglist)
/* settings */ /* settings */
if(cfg->total_fcomps) if(cfg->total_fcomps)
strcpy(user.tmpext,cfg->fcomp[0]->ext); SAFECOPY(user.tmpext,cfg->fcomp[0]->ext);
else else
strcpy(user.tmpext,supported_archive_formats[0]); SAFECOPY(user.tmpext,supported_archive_formats[0]);
user.shell=cfg->new_shell; user.shell=cfg->new_shell;
user.misc=cfg->new_misc|(AUTOTERM|COLOR); user.misc=cfg->new_misc|(AUTOTERM|COLOR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment