summaryrefslogtreecommitdiff
path: root/plugins/YAMN/src/mails/mails.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-01-03 22:11:27 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-01-03 22:11:27 +0000
commit53e568efe6f2a9e121ac6cf305e5fa9a84137c1a (patch)
tree60185775025f8fe3a7ed8f1f78b041c5db5770c1 /plugins/YAMN/src/mails/mails.cpp
parentb06a96420250b0a6b8de0a3c463e4599ba16e522 (diff)
- fix for the buffer overrun in YAMN's mime parser
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2948 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAMN/src/mails/mails.cpp')
-rw-r--r--plugins/YAMN/src/mails/mails.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/YAMN/src/mails/mails.cpp b/plugins/YAMN/src/mails/mails.cpp
index af0f3d2329..785fc5d8d9 100644
--- a/plugins/YAMN/src/mails/mails.cpp
+++ b/plugins/YAMN/src/mails/mails.cpp
@@ -155,7 +155,7 @@ INT_PTR DeleteAccountMailSvc(WPARAM wParam,LPARAM lParam)
HYAMNMAIL OldMail=(HYAMNMAIL)lParam;
struct CMimeItem *TH;
- if (Plugin->MailFcn!=NULL){
+ if (Plugin->MailFcn!=NULL) {
if (Plugin->MailFcn->DeleteMailFcnPtr!=NULL) {
//Let plugin delete its own CMimeMsgQueue derived structure
Plugin->MailFcn->DeleteMailFcnPtr(OldMail);
@@ -435,7 +435,7 @@ void WINAPI TranslateHeaderFcn(char *stream,int len,struct CMimeItem **head)
while (!DOTLINE(finder+1))finder++;
if (ENDLINE(finder))finder--;
prev2 = finder;
- if (prev2>prev1){ // yes, we have body
+ if (prev2>prev1) { // yes, we have body
if (NULL==(Item->Next=new struct CMimeItem)) break; // Cant create new item?!
Item=Item->Next;
Item->Next=NULL;//just in case;