Dash:
[t2.git] / package / mail / bincimap / hotfix-glibc2_10.patch
blob930eefdea5dbe30a7abfab2f24a0ba02218cda0a
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../bincimap/glibc-2_10.patch
5 # Copyright (C) 2010 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -ur bincimap-1.2.13final.orig/src/convert.h bincimap-1.2.13final/src/convert.h
18 --- bincimap-1.2.13final.orig/src/convert.h 2005-02-08 22:30:22.000000000 +0200
19 +++ bincimap-1.2.13final/src/convert.h 2009-08-08 10:36:12.000000000 +0300
20 @@ -112,12 +112,12 @@
21 unsigned char d = *(i + 1);
23 char *t;
24 - if ((t = strchr(hexchars, c)) == 0)
25 + if ((t = (char *) strchr(hexchars, c)) == 0)
26 return "out of range";
27 n = (t - hexchars) << 4;
30 - if ((t = strchr(hexchars, d)) == 0)
31 + if ((t = (char *) strchr(hexchars, d)) == 0)
32 return "out of range";
33 n += (t - hexchars);