Mercurial > mxe-octave
changeset 981:26d50f1e4b29
upgrade package vmime to 0.9.1-svn-r546
r546 | vincent-richard | 2010-05-14 18:56:20 +0200 (Fri, 14 May 2010) | 1 line
Fixed parsing of header field value with no data on the first line (folding).
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Sat, 15 May 2010 20:45:27 +0200 |
parents | 310b148a8061 |
children | 4d2e6c7c2cc2 |
files | src/vmime-0.9.1-svn-r546-20100514.patch |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/vmime-0.9.1-svn-r546-20100514.patch Sat May 15 20:45:27 2010 +0200 @@ -0,0 +1,19 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +diff -urN a/src/headerField.cpp b/src/headerField.cpp +--- a/src/headerField.cpp 2010-05-15 20:36:05.685783611 +0200 ++++ b/src/headerField.cpp 2010-05-15 20:36:18.853452026 +0200 +@@ -146,6 +146,12 @@ + { + c = buffer[pos]; + ++ // Check for folded line ++ if (c == '\r' && pos + 2 < end && buffer[pos + 1] == '\n' && ++ (buffer[pos + 2] == ' ' || buffer[pos + 2] == '\t')) ++ { ++ pos += 3; ++ } + // Check for end of contents + if (c == '\r' && pos + 1 < end && buffer[pos + 1] == '\n') + {