File 0002-Avoid-returning-1-as-255.patch of Package cyrus-imapd

36
 
1
From 11ca677bada174536fa1f7074892b1aa0f04091a Mon Sep 17 00:00:00 2001
2
From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com>
3
Date: Fri, 25 Aug 2017 15:43:35 +0200
4
Subject: [PATCH 2/2] Avoid returning -1 as 255
5
6
Resolves #2122
7
---
8
 cunit/parse.testc | 4 ++--
9
 1 file changed, 2 insertions(+), 2 deletions(-)
10
11
diff --git a/cunit/parse.testc b/cunit/parse.testc
12
index 281b249..dcaf920 100644
13
--- a/cunit/parse.testc
14
+++ b/cunit/parse.testc
15
@@ -23,7 +23,7 @@ int wrap_getint32(const char *s, int32_t *valp)
16
 {
17
     struct protstream *prot;
18
     char *b;
19
-    int c;
20
+    int8_t c;
21
 
22
     b = xstrdup(s);    /* work around bug in prot_ungetc */
23
     prot = prot_readmap(b, strlen(b));
24
@@ -101,7 +101,7 @@ int wrap_getsint32(const char *s, int32_t *valp)
25
 {
26
     struct protstream *prot;
27
     char *b;
28
-    int c;
29
+    int8_t c;
30
 
31
     b = xstrdup(s);    /* work around bug in prot_ungetc */
32
     prot = prot_readmap(b, strlen(b));
33
-- 
34
1.8.3.1
35
36