]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_dbg.h
xnu-1699.32.7.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_dbg.h
index ef04230833a8614d3bd5d86f6f5a2583572fd6f1..f39271fe42e77a3314b9fc733144aefa0b4398a2 100644 (file)
@@ -94,7 +94,7 @@ extern int hfs_dbg_err;
     #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); } }