From e4c4284dbeb5d111199a530be69c8385ea8a1855 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 9 Dec 2017 01:05:18 +0100 Subject: [PATCH] Tokenize categories on semicolons (";") --- src/mimehandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mimehandler.c b/src/mimehandler.c index 43988fe..1c07c6f 100644 --- a/src/mimehandler.c +++ b/src/mimehandler.c @@ -233,8 +233,8 @@ String const ** mimehandler_get_categories(MimeHandler * handler) } if((q = string_new(p)) == NULL) return NULL; - for(p = strtok_r(q, ":", &last); p != NULL; - p = strtok_r(NULL, ":", &last)) + for(p = strtok_r(q, ";", &last); p != NULL; + p = strtok_r(NULL, ";", &last)) { if(strlen(p) == 0) continue;