Skip to content

Commit 83f3bdf

Browse files
committed
use snprintf to remove warnings/safer
1 parent e997859 commit 83f3bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redev_assert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define REDEV_ALWAYS_ASSERT(cond) do { \
55
if (! (cond)) { \
66
char omsg[2048]; \
7-
sprintf(omsg, "%s failed at %s + %d \n", \
7+
snprintf(omsg,200, "%s failed at %s + %d \n", \
88
#cond, __FILE__, __LINE__); \
99
redev::Redev_Assert_Fail(omsg); \
1010
} \

0 commit comments

Comments
 (0)