diff options
-rw-r--r-- | plugins/TabSRMM/src/chat/clist.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/chat/log.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/chat/clist.cpp b/plugins/TabSRMM/src/chat/clist.cpp index 363e815947..b570c360f1 100644 --- a/plugins/TabSRMM/src/chat/clist.cpp +++ b/plugins/TabSRMM/src/chat/clist.cpp @@ -267,7 +267,7 @@ BOOL CList_AddEvent(HANDLE hContact, HICON Icon, HANDLE event, int type, const T return FALSE;
va_start(marker, fmt);
- mir_vsntprintf(szBuf, _tcslen(szBuf), fmt, marker);
+ _vstprintf(szBuf, fmt, marker); //!!!!!!!!
va_end(marker);
cle.cbSize = sizeof(cle);
diff --git a/plugins/TabSRMM/src/chat/log.cpp b/plugins/TabSRMM/src/chat/log.cpp index 51ef5776b3..0d45441233 100644 --- a/plugins/TabSRMM/src/chat/log.cpp +++ b/plugins/TabSRMM/src/chat/log.cpp @@ -617,11 +617,11 @@ static int Log_AppendRTF(LOGSTREAMDATA* streamData, BOOL simpleMode, char **buff d += 5;
} else if ((*line == '\\' || *line == '{' || *line == '}') && !streamData->bStripFormat) {
*d++ = '\\';
- *d++ = (char)*line;
+ *d++ = (char) * line;
} else if (*line > 0 && *line < 128) {
- *d++ = (char)*line;
+ *d++ = (char) * line;
}
- else d += mir_snprintf(d, strlen(d), "\\u%u ?", (WORD)*line);
+ else d += sprintf(d, "\\u%u ?", (WORD) * line); //!!!!!!!!!
}
*cbBufferEnd = (int)(d - *buffer);
|