From 6216f8689ba52e6a12ae00bc01865a271e77e436 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sat, 3 Mar 2012 15:44:58 +0000 Subject: [PATCH] fix reversed test --- src/readcdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/readcdf.c b/src/readcdf.c index bc46a3ee..c4bea0d4 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.28 2012/02/17 05:27:45 christos Exp $") +FILE_RCSID("@(#)$File: readcdf.c,v 1.29 2012/02/20 20:04:58 christos Exp $") #endif #include @@ -285,7 +285,7 @@ file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, d = &dir.dir_tab[j]; for (k = 0; k < sizeof(name); k++) name[k] = (char)cdf_tole2(d->d_name[k]); - if (strstr(name, "WordDocument") == 0) { + if (strstr(name, "WordDocument") != 0) { str = "msword"; break; } -- 2.40.0