summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/chat/log.cpp')
-rw-r--r--plugins/TabSRMM/src/chat/log.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/chat/log.cpp b/plugins/TabSRMM/src/chat/log.cpp
index 0d45441233..51ef5776b3 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 += sprintf(d, "\\u%u ?", (WORD) * line); //!!!!!!!!!
+ else d += mir_snprintf(d, strlen(d), "\\u%u ?", (WORD)*line);
}
*cbBufferEnd = (int)(d - *buffer);