From c949c6a9ef2ce52b554869de74b5c8209db07102 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 28 Sep 2011 13:30:10 +0000 Subject: [PATCH] PR/146: Mime output for office files broken. --- src/readcdf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/readcdf.c b/src/readcdf.c index e3f57929..b5b6d3fb 100644 --- a/src/readcdf.c +++ b/src/readcdf.c @@ -26,7 +26,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: readcdf.c,v 1.25 2011/02/10 21:35:05 christos Exp $") +FILE_RCSID("@(#)$File: readcdf.c,v 1.26 2011/08/26 13:38:28 christos Exp $") #endif #include @@ -144,6 +144,8 @@ cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info, if (!NOTMIME(ms)) { if (str == NULL) return 0; + if (file_printf(ms, "application/%s", str) == -1) + return -1; } return 1; } @@ -292,7 +294,8 @@ out1: free(sat.sat_tab); out0: if (i != 1) { - if (file_printf(ms, "Composite Document File V2 Document") == -1) + if (file_printf(ms, "Composite Document File V2 Document") + == -1) return -1; if (*expn) if (file_printf(ms, ", %s%s", corrupt, expn) == -1) -- 2.40.0