]> granicus.if.org Git - file/commitdiff
fix reversed test
authorChristos Zoulas <christos@zoulas.com>
Sat, 3 Mar 2012 15:44:58 +0000 (15:44 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 3 Mar 2012 15:44:58 +0000 (15:44 +0000)
src/readcdf.c

index 9cd0ceb0de68020e7a8a1570aa0830bed09e3da7..6d8db784c946fdf3f426dd4a4af830bd134999ff 100644 (file)
@@ -26,7 +26,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: readcdf.c,v 1.29 2012/02/20 20:04:58 christos Exp $")
+FILE_RCSID("@(#)$File: readcdf.c,v 1.30 2012/03/03 15:44:58 christos Exp $")
 #endif
 
 #include <stdlib.h>
@@ -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;
                    }