summaryrefslogtreecommitdiff
path: root/plugins/IEView
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-07-25 15:32:06 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-07-25 15:32:06 +0000
commita757184e5db3112d3de0b69eec7d39b937e396bc (patch)
treee903787b3ca3af22a4d95ddf757e178b23da8619 /plugins/IEView
parent33ebc5347bee5432ca63efb330acdd5a3b82f3fd (diff)
replace sprintf to mir_snprintf (part 5)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5481 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView')
-rw-r--r--plugins/IEView/src/TemplateHTMLBuilder.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp
index 042702089c..b48476b063 100644
--- a/plugins/IEView/src/TemplateHTMLBuilder.cpp
+++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp
@@ -214,9 +214,9 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr
*szNoAvatarPathTmp = 0;
_tcscat(szNoAvatarPath, _T("\\noavatar.png"));
if (_taccess(szNoAvatarPath, 0) == -1)
- sprintf(tempStr, "%snoavatar.jpg", tempBase);
+ mir_snprintf(tempStr, SIZEOF(tempStr), "%snoavatar.jpg", tempBase);
else
- sprintf(tempStr, "%snoavatar.png", tempBase);
+ mir_snprintf(tempStr, SIZEOF(tempStr), "%snoavatar.png", tempBase);
szNoAvatar = mir_utf8encode(tempStr);
szAvatarIn = getAvatar(event->hContact, szRealProto);
if (szAvatarIn == NULL) {
@@ -390,9 +390,9 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event,
*szNoAvatarPathTmp = 0;
_tcscat(szNoAvatarPath, _T("\\noavatar.png"));
if (_taccess(szNoAvatarPath, 0) == -1)
- sprintf(tempStr, "%snoavatar.jpg", tempBase);
+ mir_snprintf(tempStr, SIZEOF(tempStr), "%snoavatar.jpg", tempBase);
else
- sprintf(tempStr, "%snoavatar.png", tempBase);
+ mir_snprintf(tempStr, SIZEOF(tempStr), "%snoavatar.png", tempBase);
szNoAvatar = mir_utf8encode(tempStr);
if(event->hContact != NULL)
szAvatarIn = getAvatar(event->hContact, szRealProto);
@@ -446,12 +446,12 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event,
if (isSent) {
szAvatar = szAvatarOut;
szUIN = szUINOut;
- sprintf(szCID, "%d", 0);
+ mir_snprintf(szCID, SIZEOF(szCID), "%d", 0);
}
else {
szAvatar = szAvatarIn;
szUIN = szUINIn;
- sprintf(szCID, "%d", (int)event->hContact);
+ mir_snprintf(szCID, SIZEOF(szCID), "%d", (int)event->hContact);
}
tmpltName[0] = groupTemplate;
tmpltName[1] = NULL;