Skip to content
Snippets Groups Projects
Commit 93bc32f0 authored by rswindell's avatar rswindell
Browse files

Created SAFECOPY() macro that does a bound-checked strcpy basically.

parent d5bcf897
Branches
Tags
No related merge requests found
......@@ -127,6 +127,7 @@ enum {
#define HANDLE void*
#endif
#define SAFECOPY(dst,src) sprintf(dst,"%.*s",sizeof(dst)-1,src)
/****************************************************************************/
/* MALLOC/FREE Macros for various compilers and environments */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment