From: Michael Hampton Date: Sun, 29 Jun 2008 12:47:36 +0000 (+0000) Subject: Rewrite encoding checks for 64-bit cleanliness X-Git-Tag: v7.86~2123 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=8744cc75a126a7d7b0cd738ab021665db25c0c99;p=citadel.git Rewrite encoding checks for 64-bit cleanliness --- diff --git a/libcitadel/lib/vnote.c b/libcitadel/lib/vnote.c index a3564eb28..b476ccbfa 100644 --- a/libcitadel/lib/vnote.c +++ b/libcitadel/lib/vnote.c @@ -96,9 +96,8 @@ struct vnote *vnote_new_from_str(char *s) { *encoded_value++ = 0; /* any qualifiers? (look for a semicolon) */ - is_base64 = (int) bmstrcasestr(thisline, "encoding=base64"); - is_quoted_printable = (int) bmstrcasestr(thisline, - "encoding=quoted-printable"); + is_base64 = bmstrcasestr(thisline, "encoding=base64") ? 1 : 0; + is_quoted_printable = bmstrcasestr(thisline, "encoding=quoted-printable") ? 1 : 0; char *semicolon_pos = strchr(thisline, ';'); if (semicolon_pos) {