Merge pull request #2032 from ntwerdochlib/master

Minor tweak to CLOG_PRINT macro.  Initialalize tag buffer to NULL.  Use ...
This commit is contained in:
Marc-André Moreau 2014-08-11 18:54:43 -04:00
commit fe833f06f9

View File

@ -24,12 +24,12 @@
#define CLOG_PRINT(level, file, fkt, line, dbg_str, fmt, ...) \
do { \
char tag[1024]; \
char tag[1024] = {0}; \
wLogMessage msg; \
wLog *log; \
\
strcat(tag, "com.freerdp.channels."); \
strcat(tag, dbg_str); \
strncat(tag, "com.freerdp.channels.", sizeof(tag)); \
strncat(tag, dbg_str, sizeof(tag) - sizeof("com.freerdp.channels.")); \
log = WLog_Get(tag); \
\
msg.Type = WLOG_MESSAGE_TEXT; \