/* Define the debugging stage...
4 -> Do all, aggresive, call_kdp
/* Define the debugging stage...
4 -> Do all, aggresive, call_kdp
#if (HFS_DEBUG_STAGE == 4)
char gDebugAssertStr[255];
#define DBG_ASSERT(a) { if (!(a)) { \
#if (HFS_DEBUG_STAGE == 4)
char gDebugAssertStr[255];
#define DBG_ASSERT(a) { if (!(a)) { \
- sprintf(gDebugAssertStr,"Oops - File "__FILE__", line %d: assertion '%s' failed.\n", __LINE__, #a); \
+ snprintf(gDebugAssertStr, sizeof (gDebugAssertStr), "Oops - File "__FILE__", line %d: assertion '%s' failed.\n", __LINE__, #a); \
Debugger(gDebugAssertStr); } }
#else
#define DBG_ASSERT(a) { if (!(a)) { panic("File "__FILE__", line %d: assertion '%s' failed.\n", __LINE__, #a); } }
Debugger(gDebugAssertStr); } }
#else
#define DBG_ASSERT(a) { if (!(a)) { panic("File "__FILE__", line %d: assertion '%s' failed.\n", __LINE__, #a); } }