From 8744cc75a126a7d7b0cd738ab021665db25c0c99 Mon Sep 17 00:00:00 2001 From: Michael Hampton Date: Sun, 29 Jun 2008 12:47:36 +0000 Subject: [PATCH] Rewrite encoding checks for 64-bit cleanliness --- libcitadel/lib/vnote.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.39.2