changeset 352:8173978c2bfd

- if(strncasecmp(hdrline, "Subject: ", 9) == 0) { + if(strncasecmp(hdrline, "Subject:", 8) == 0) {
author mmj
date Tue, 09 Nov 2004 22:03:55 +1100
parents 370a584ade9d
children b8d5ac160b56
files src/do_all_the_voodo_here.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/do_all_the_voodo_here.c	Tue Nov 09 22:02:50 2004 +1100
+++ b/src/do_all_the_voodo_here.c	Tue Nov 09 22:03:55 2004 +1100
@@ -125,13 +125,13 @@
 
 		/* Add Subject: prefix if wanted */
 		if(prefix) {
-			if(strncasecmp(hdrline, "Subject: ", 9) == 0) {
-				unqp = cleanquotedp(hdrline + 9);
-				if(strstr(hdrline + 9, prefix) == NULL &&
+			if(strncasecmp(hdrline, "Subject:", 8) == 0) {
+				unqp = cleanquotedp(hdrline + 8);
+				if(strstr(hdrline + 8, prefix) == NULL &&
 				   strstr(unqp, prefix) == NULL) {
-					subject = concatstr(4,
+					subject = concatstr(3,
 							"Subject: ", prefix,
-							" ", hdrline + 9);
+							hdrline + 8);
 					writen(outfd, subject,
 							strlen(subject));
 					myfree(subject);