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

strcpy() -> SAFECOPY()

parent 948e7d1d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -496,7 +496,7 @@ uint hptoi(const char *str) ...@@ -496,7 +496,7 @@ uint hptoi(const char *str)
if(!str[1] || toupper(str[0])<='F') if(!str[1] || toupper(str[0])<='F')
return(ahtoul(str)); return(ahtoul(str));
strcpy(tmp,str); SAFECOPY(tmp,str);
tmp[0]='F'; tmp[0]='F';
i=ahtoul(tmp)+((toupper(str[0])-'F')*0x10); i=ahtoul(tmp)+((toupper(str[0])-'F')*0x10);
return(i); return(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment