From 844aca0e1effc2af2b200455a936257747401205 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Sun, 29 Jul 2001 06:03:45 +0000 Subject: [PATCH] Fixed EncodeEmailHeaders --- golded3/gectrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/golded3/gectrl.cpp b/golded3/gectrl.cpp index e7e5a67..29314db 100644 --- a/golded3/gectrl.cpp +++ b/golded3/gectrl.cpp @@ -163,10 +163,10 @@ char* mime_header_encode(char* dest, const char* source, GMsg* msg) { lp = s + strlen(s); - while((lp>s) and in_range((char)(*lp-1), (char)' ', (char)'\x7F')) + while((lp>s) and in_range(lp[-1], ' ', '\x7F')) lp--; - for(const char* ptr = s; *ptr and (ptr<=lp); ptr++) { + for(const char* ptr = s; *ptr and (ptrcharset) {