aboutsummaryrefslogtreecommitdiffstats
path: root/community/ripmime/ripmime-1.4.0.10-gcc8.patch
blob: 40e51f89240f6b599ec58c80e843620d0ac267b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/MIME_headers.c
+++ b/MIME_headers.c
@@ -2957,7 +2957,7 @@
 
 	// Initialise header defects array.
 	hinfo->header_defect_count = 0;
-	memset(hinfo->defects, 0, _MIMEH_DEFECT_ARRAY_SIZE);
+	memset(hinfo->defects, 0, sizeof(hinfo->defects[0]) * _MIMEH_DEFECT_ARRAY_SIZE);
 
 	snprintf( hinfo->content_type_string, _MIMEH_CONTENT_TYPE_MAX , "text/plain" ); 
 
--- a/pldstr.c
+++ b/pldstr.c
@@ -297,7 +297,7 @@
 
 	result = st->start;
 
-	if ((st->start)&&(st->start != '\0'))
+	if ((st->start)&&(*(st->start) != '\0'))
 	{
 		stop = strpbrk( st->start, delimeters ); /* locate our next delimeter */
 
--- a/ripOLE/pldstr.c
+++ b/ripOLE/pldstr.c
@@ -297,7 +297,7 @@
 
 	result = st->start;
 
-	if ((st->start)&&(st->start != '\0'))
+	if ((st->start)&&(*(st->start) != '\0'))
 	{
 		stop = strpbrk( st->start, delimeters ); /* locate our next delimeter */