aboutsummaryrefslogtreecommitdiff
path: root/src/quoted-printable.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-02 08:24:31 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-02 08:24:31 +0000
commit3ca4175052e8a6c26a6cc93501e92a4436cad3df (patch)
treecd8c6b5f88ff65d5e74c27638eaaf4ec13572828 /src/quoted-printable.c
parente059bc94965dd6cb4afcff3d5efceec32a98a5a0 (diff)
fixed gcc-4.0 warnings.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@457 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/quoted-printable.c')
-rw-r--r--src/quoted-printable.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/quoted-printable.c b/src/quoted-printable.c
index bf99a234..cea0b704 100644
--- a/src/quoted-printable.c
+++ b/src/quoted-printable.c
@@ -92,9 +92,10 @@ gint qp_decode_line(gchar *str)
while (*inp != '\0') {
if (*inp == '=') {
if (inp[1] && inp[2] &&
- get_hex_value(outp, inp[1], inp[2]) == TRUE) {
+ get_hex_value((guchar *)outp, inp[1], inp[2])
+ == TRUE) {
inp += 3;
- } else if (inp[1] == '\0' || isspace((guchar)inp[1])) {
+ } else if (inp[1] == '\0' || g_ascii_isspace(inp[1])) {
/* soft line break */
break;
} else {
@@ -150,7 +151,7 @@ gint qp_get_q_encoding_len(const guchar *str)
if (*inp == 0x20)
len++;
else if (*inp == '=' || *inp == '?' || *inp == '_' ||
- *inp < 32 || *inp > 127 || isspace(*inp))
+ *inp < 32 || *inp > 127 || g_ascii_isspace(*inp))
len += 3;
else
len++;
@@ -170,7 +171,7 @@ void qp_q_encode(gchar *out, const guchar *in)
if (*inp == 0x20)
*outp++ = '_';
else if (*inp == '=' || *inp == '?' || *inp == '_' ||
- *inp < 32 || *inp > 127 || isspace(*inp)) {
+ *inp < 32 || *inp > 127 || g_ascii_isspace(*inp)) {
*outp++ = '=';
get_hex_str(outp, *inp);
outp += 2;