From 73b1a8ee4370e5dd59b21ac9cf98120682632c59 Mon Sep 17 00:00:00 2001 From: dequis Date: Thu, 19 Mar 2015 07:25:33 -0300 Subject: get_rfc822_header: allow headers at the end of a string --- lib/misc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/misc.c') diff --git a/lib/misc.c b/lib/misc.c index 74e28bfb..c2a42c97 100644 --- a/lib/misc.c +++ b/lib/misc.c @@ -718,11 +718,6 @@ char *get_rfc822_header(const char *text, const char *header, int len) i++; } - /* Make sure we're still inside the string */ - if (i >= len) { - return(NULL); - } - /* Copy the found data */ return(g_strndup(ret, text + i - ret)); } -- cgit v1.2.3